onSearchBarTap method

Future<void> onSearchBarTap(
  1. {required BuildContext context,
  2. required WidgetRef ref,
  3. 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,
  );
}