maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult createResult(
    1. CreateResult data
    )?,
  2. TResult updateResult(
    1. UpdateResult data
    )?,
  3. TResult deleteResult(
    1. DeleteResult data
    )?,
  4. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(CreateResult data)? createResult,
  TResult Function(UpdateResult data)? updateResult,
  TResult Function(DeleteResult data)? deleteResult,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;