maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult empty()?,
  2. TResult loading()?,
  3. TResult fetched(
    1. List<FacilityModel> facilities,
    2. List<FacilityModel> allFacilities
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function()? empty,
  TResult Function()? loading,
  TResult Function(
          List<FacilityModel> facilities, List<FacilityModel> allFacilities)?
      fetched,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;