maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult initialize()?,
  2. TResult searchByHousehold(
    1. String projectId,
    2. double? latitude,
    3. double? longitude,
    4. double? maxRadius,
    5. bool isProximityEnabled,
    6. HouseholdModel householdModel,
    )?,
  3. TResult searchByHouseholdHead(
    1. String searchText,
    2. String projectId,
    3. bool isProximityEnabled,
    4. double? latitude,
    5. double? longitude,
    6. double? maxRadius,
    7. String? tag,
    8. int offset,
    9. int limit,
    )?,
  4. TResult searchByProximity(
    1. double latitude,
    2. double longititude,
    3. String projectId,
    4. double maxRadius,
    5. int offset,
    6. int limit,
    )?,
  5. TResult searchByTag(
    1. String tag,
    2. String projectId
    )?,
  6. TResult clear()?,
  7. TResult individualGlobalSearch(
    1. GlobalSearchParameters globalSearchParams
    )?,
  8. TResult houseHoldGlobalSearch(
    1. GlobalSearchParameters globalSearchParams
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function()? initialize,
  TResult Function(
          String projectId,
          double? latitude,
          double? longitude,
          double? maxRadius,
          bool isProximityEnabled,
          HouseholdModel householdModel)?
      searchByHousehold,
  TResult Function(
          String searchText,
          String projectId,
          bool isProximityEnabled,
          double? latitude,
          double? longitude,
          double? maxRadius,
          String? tag,
          int offset,
          int limit)?
      searchByHouseholdHead,
  TResult Function(double latitude, double longititude, String projectId,
          double maxRadius, int offset, int limit)?
      searchByProximity,
  TResult Function(String tag, String projectId)? searchByTag,
  TResult Function()? clear,
  TResult Function(GlobalSearchParameters globalSearchParams)?
      individualGlobalSearch,
  TResult Function(GlobalSearchParameters globalSearchParams)?
      houseHoldGlobalSearch,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;