when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult batchTransaction(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String userOpHash,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  2. required TResult tokenTransfer(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String userOpHash,
    6. String status,
    7. int? blockNumber,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  3. required TResult tokenReceive(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String? userOpHash,
    6. String status,
    7. int? blockNumber,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  4. required TResult nftReceive(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String? userOpHash,
    6. String status,
    7. int? blockNumber,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  5. required TResult swapTokens(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String userOpHash,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  6. required TResult nftTransfer(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String userOpHash,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  7. required TResult approveToken(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String userOpHash,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  8. required TResult stakeTokens(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String userOpHash,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
  9. required TResult unstakeTokens(
    1. int timestamp,
    2. String id,
    3. String name,
    4. String? txHash,
    5. String status,
    6. int? blockNumber,
    7. String userOpHash,
    8. String description,
    9. List<TokenEvent> sent,
    10. List<TokenEvent> received,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String userOpHash,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      batchTransaction,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String userOpHash,
          String status,
          int? blockNumber,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      tokenTransfer,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String? userOpHash,
          String status,
          int? blockNumber,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      tokenReceive,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String? userOpHash,
          String status,
          int? blockNumber,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      nftReceive,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String userOpHash,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      swapTokens,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String userOpHash,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      nftTransfer,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String userOpHash,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      approveToken,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String userOpHash,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      stakeTokens,
  required TResult Function(
          @TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp,
          @JsonKey(name: '_id') String id,
          String name,
          String? txHash,
          String status,
          int? blockNumber,
          String userOpHash,
          String description,
          List<TokenEvent> sent,
          List<TokenEvent> received)
      unstakeTokens,
}) =>
    throw _privateConstructorUsedError;