maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult commit(
    1. Commit data
    )?,
  2. TResult identity(
    1. Identity data
    )?,
  3. TResult account(
    1. Account data
    )?,
  4. TResult handle(
    1. Handle data
    )?,
  5. TResult migrate(
    1. Migrate data
    )?,
  6. TResult tombstone(
    1. Tombstone data
    )?,
  7. TResult info(
    1. Info data
    )?,
  8. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(Commit data)? commit,
  TResult Function(Identity data)? identity,
  TResult Function(Account data)? account,
  TResult Function(Handle data)? handle,
  TResult Function(Migrate data)? migrate,
  TResult Function(Tombstone data)? tombstone,
  TResult Function(Info data)? info,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;