getActions method

  1. @override
List<Widget> getActions(
  1. {required BuildContext context,
  2. required WidgetRef ref,
  3. required AppModel appModel}
)
override

Get the floating search bar actions of this source when it is the active source being displayed on its respective media type tab.

Implementation

@override
List<Widget> getActions({
  required BuildContext context,
  required WidgetRef ref,
  required AppModel appModel,
}) {
  return [
    if (isActive)
      buildClearButton(
        context: context,
        ref: ref,
        appModel: appModel,
      ),
    buildConnectButton(
      context: context,
      ref: ref,
      appModel: appModel,
    ),
  ];
}