maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult getContacts(
    1. bool openSettings,
    2. bool getIfHasPermission
    )?,
  2. TResult setSearchText(
    1. String searchText
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(bool openSettings, bool getIfHasPermission)? getContacts,
  TResult Function(String searchText)? setSearchText,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;