when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult call(
    1. U8Array32 id,
    2. U8Array32 to,
    3. int amount,
    4. U8Array32 assetId,
    5. int gas,
    6. int param1,
    7. int param2,
    8. int pc,
    9. int isField,
    ),
  2. required TResult returnReceipt(
    1. U8Array32 id,
    2. int val,
    3. int pc,
    4. int isField,
    ),
  3. required TResult returnData(
    1. U8Array32 id,
    2. int ptr,
    3. int len,
    4. U8Array32 digest,
    5. Uint8List data,
    6. int pc,
    7. int isField,
    ),
  4. required TResult panic(
    1. U8Array32 id,
    2. InstructionResult reason,
    3. int pc,
    4. int isField,
    5. U8Array32? contractId,
    ),
  5. required TResult revert(
    1. U8Array32 id,
    2. int ra,
    3. int pc,
    4. int isField,
    ),
  6. required TResult log(
    1. U8Array32 id,
    2. int ra,
    3. int rb,
    4. int rc,
    5. int rd,
    6. int pc,
    7. int isField,
    ),
  7. required TResult logData(
    1. U8Array32 id,
    2. int ra,
    3. int rb,
    4. int ptr,
    5. int len,
    6. U8Array32 digest,
    7. Uint8List data,
    8. int pc,
    9. int isField,
    ),
  8. required TResult transfer(
    1. U8Array32 id,
    2. U8Array32 to,
    3. int amount,
    4. U8Array32 assetId,
    5. int pc,
    6. int isField,
    ),
  9. required TResult transferOut(
    1. U8Array32 id,
    2. U8Array32 to,
    3. int amount,
    4. U8Array32 assetId,
    5. int pc,
    6. int isField,
    ),
  10. required TResult scriptResult(
    1. ScriptExecutionResult result,
    2. int gasUsed
    ),
  11. required TResult messageOut(
    1. U8Array32 messageId,
    2. U8Array32 sender,
    3. U8Array32 recipient,
    4. int amount,
    5. U8Array32 nonce,
    6. int len,
    7. U8Array32 digest,
    8. Uint8List data,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          U8Array32 id,
          U8Array32 to,
          int amount,
          U8Array32 assetId,
          int gas,
          int param1,
          int param2,
          int pc,
          int isField)
      call,
  required TResult Function(U8Array32 id, int val, int pc, int isField)
      returnReceipt,
  required TResult Function(U8Array32 id, int ptr, int len, U8Array32 digest,
          Uint8List data, int pc, int isField)
      returnData,
  required TResult Function(U8Array32 id, InstructionResult reason, int pc,
          int isField, U8Array32? contractId)
      panic,
  required TResult Function(U8Array32 id, int ra, int pc, int isField) revert,
  required TResult Function(
          U8Array32 id, int ra, int rb, int rc, int rd, int pc, int isField)
      log,
  required TResult Function(U8Array32 id, int ra, int rb, int ptr, int len,
          U8Array32 digest, Uint8List data, int pc, int isField)
      logData,
  required TResult Function(U8Array32 id, U8Array32 to, int amount,
          U8Array32 assetId, int pc, int isField)
      transfer,
  required TResult Function(U8Array32 id, U8Array32 to, int amount,
          U8Array32 assetId, int pc, int isField)
      transferOut,
  required TResult Function(ScriptExecutionResult result, int gasUsed)
      scriptResult,
  required TResult Function(
          U8Array32 messageId,
          U8Array32 sender,
          U8Array32 recipient,
          int amount,
          U8Array32 nonce,
          int len,
          U8Array32 digest,
          Uint8List data)
      messageOut,
}) =>
    throw _privateConstructorUsedError;