data static method
Get the notifier for direct access to all theme methods
This provides access to all notifier methods while maintaining the convenience of context-based access.
Example:
FlyTheme.data(context)?.putSpacing('large', 32.0);
FlyTheme.data(context)?.updateColors((colors) => colors.put('primary', Colors.blue));
Implementation
static FlyNotifier? data(BuildContext context) {
return _getNotifier(context);
}