maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult repoView(
    1. RepoView data
    )?,
  2. TResult repoViewNotFound(
    1. RepoViewNotFound data
    )?,
  3. TResult recordView(
    1. RecordView data
    )?,
  4. TResult recordViewNotFound(
    1. RecordViewNotFound data
    )?,
  5. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  6. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(RepoView data)? repoView,
  TResult Function(RepoViewNotFound data)? repoViewNotFound,
  TResult Function(RecordView data)? recordView,
  TResult Function(RecordViewNotFound data)? recordViewNotFound,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;