when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult nativeToken(
    1. String symbol,
    2. String name,
    3. int decimals,
    4. String address,
    5. BigInt value,
    6. String? to,
    7. String? from,
    ),
  2. required TResult erc20Transfer(
    1. String symbol,
    2. String name,
    3. int decimals,
    4. String address,
    5. BigInt value,
    6. String? to,
    7. String? from,
    ),
  3. required TResult erc721Transfer(
    1. String symbol,
    2. String name,
    3. String address,
    4. BigInt value,
    5. BigInt? tokenId,
    6. String? to,
    7. String? from,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          String symbol,
          String name,
          int decimals,
          String address,
          @JsonKey(fromJson: amountFromJson) BigInt value,
          String? to,
          String? from)
      nativeToken,
  required TResult Function(
          String symbol,
          @JsonKey(fromJson: nameFromJson) String name,
          int decimals,
          @JsonKey(fromJson: addressFromJson) String address,
          BigInt value,
          String? to,
          String? from)
      erc20Transfer,
  required TResult Function(
          String symbol,
          @JsonKey(fromJson: nameFromJson) String name,
          @JsonKey(fromJson: addressFromJson) String address,
          BigInt value,
          BigInt? tokenId,
          String? to,
          String? from)
      erc721Transfer,
}) =>
    throw _privateConstructorUsedError;