when<TResult extends Object?> method

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

Implementation

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