when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult createWallet(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    ),
  2. required TResult fiatDeposit(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String tokenAddress,
    8. String? from,
    9. String to,
    10. BigInt value,
    11. String tokenName,
    12. String tokenSymbol,
    13. int tokenDecimal,
    ),
  3. required TResult send(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String tokenAddress,
    8. String from,
    9. String to,
    10. BigInt value,
    11. String tokenName,
    12. String tokenSymbol,
    13. int tokenDecimal,
    ),
  4. required TResult receive(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String tokenAddress,
    8. String from,
    9. String to,
    10. BigInt value,
    11. String tokenName,
    12. String tokenSymbol,
    13. int tokenDecimal,
    ),
  5. required TResult swap(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    ),
  6. required TResult receiveNFT(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String tokenAddress,
    8. String from,
    9. String to,
    10. String tokenName,
    11. String tokenSymbol,
    12. int tokenDecimal,
    ),
  7. required TResult stakeTokens(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String tokenAddress,
    8. String from,
    9. String to,
    10. BigInt value,
    11. String tokenName,
    12. String tokenSymbol,
    13. int tokenDecimal,
    ),
  8. required TResult unstakeTokens(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String tokenAddress,
    8. String from,
    9. String to,
    10. BigInt value,
    11. String tokenName,
    12. String tokenSymbol,
    13. int tokenDecimal,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(int timestamp, @JsonKey(name: '_id') String id,
          String name, String? txHash, String status, int? blockNumber)
      createWallet,
  required TResult Function(
          int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String tokenAddress,
          String? from,
          String to,
          BigInt value,
          String tokenName,
          String tokenSymbol,
          int tokenDecimal)
      fiatDeposit,
  required TResult Function(
          int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String tokenAddress,
          String from,
          String to,
          BigInt value,
          String tokenName,
          String tokenSymbol,
          int tokenDecimal)
      send,
  required TResult Function(
          int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String tokenAddress,
          String from,
          String to,
          BigInt value,
          String tokenName,
          String tokenSymbol,
          int tokenDecimal)
      receive,
  required TResult Function(int timestamp, @JsonKey(name: '_id') String id,
          String name, String? txHash, String status, int? blockNumber)
      swap,
  required TResult Function(
          int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String tokenAddress,
          String from,
          String to,
          String tokenName,
          String tokenSymbol,
          int tokenDecimal)
      receiveNFT,
  required TResult Function(
          int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String tokenAddress,
          String from,
          String to,
          BigInt value,
          String tokenName,
          String tokenSymbol,
          int tokenDecimal)
      stakeTokens,
  required TResult Function(
          int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String tokenAddress,
          String from,
          String to,
          BigInt value,
          String tokenName,
          String tokenSymbol,
          int tokenDecimal)
      unstakeTokens,
}) =>
    throw _privateConstructorUsedError;