when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult success(
- int statusCode,
- T data
- required TResult failed(),
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;