maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult success(
    1. int statusCode,
    2. T data
    )?,
  2. TResult failed(
    1. int? statusCode,
    2. Object? data
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(int statusCode, T data)? success,
  TResult Function(int? statusCode, Object? data)? failed,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;