when<TResult extends Object?> method

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

Implementation

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