whenOrNull<TResult extends Object?> method

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

Implementation

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