JoinedPayload<FirstLogicType extends Logic, SecondLogicType extends Logic> constructor

JoinedPayload<FirstLogicType extends Logic, SecondLogicType extends Logic>(
  1. FirstLogicType first,
  2. SecondLogicType second, {
  3. String name = 'join_payload',
})

Creates a typed pair payload for a joined transfer.

Implementation

JoinedPayload(
  FirstLogicType first,
  SecondLogicType second, {
  String name = 'join_payload',
}) : super([first, second], name: name) {
  this.first = elements[0] as FirstLogicType;
  this.second = elements[1] as SecondLogicType;
}