maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult create(
    1. Create data
    )?,
  2. TResult update(
    1. Update data
    )?,
  3. TResult delete(
    1. Delete data
    )?,
  4. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(Create data)? create,
  TResult Function(Update data)? update,
  TResult Function(Delete data)? delete,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;