when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult initialize(),
  2. required TResult searchByName(
    1. String searchText
    ),
  3. required TResult searchByTag(
    1. String tag
    ),
  4. required TResult clear(),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() initialize,
  required TResult Function(String searchText) searchByName,
  required TResult Function(String tag) searchByTag,
  required TResult Function() clear,
}) =>
    throw _privateConstructorUsedError;