onSearchBarTap method
- {required BuildContext context,
- required WidgetRef ref,
- required AppModel appModel}
If this is not null, this action is executed when the user taps on the search bar. Sources that do not have a search action should have this defined.
Implementation
Future<void> onSearchBarTap({
required BuildContext context,
required WidgetRef ref,
required AppModel appModel,
}) async {
appModel.openMedia(
context: context,
ref: ref,
mediaSource: this,
);
}