pluginsOf static method
The list of declared plugins.
Implementation
static List<DevicePreviewPlugin> pluginsOf(BuildContext context) {
final state = context.findAncestorStateOfType<_DevicePreviewState>();
return state!.widget.plugins;
}
The list of declared plugins.
static List<DevicePreviewPlugin> pluginsOf(BuildContext context) {
final state = context.findAncestorStateOfType<_DevicePreviewState>();
return state!.widget.plugins;
}