maxDynamicShortcuts method

  1. @override
Future<int> maxDynamicShortcuts()
override

How many dynamic shortcuts this launcher will hold, or 0 where there are none.

Worth asking rather than assuming: the platform guarantees at least five and launchers commonly allow more, and what the app should do at the cap is the app's decision.

Implementation

@override
Future<int> maxDynamicShortcuts() async => shortcutSlots;