maybeOf static method
Gets the SmartSearchTheme from the current context, or null if not found.
Implementation
static SmartSearchTheme? maybeOf(BuildContext context) {
return Theme.of(context).extension<SmartSearchTheme>();
}
Gets the SmartSearchTheme from the current context, or null if not found.
static SmartSearchTheme? maybeOf(BuildContext context) {
return Theme.of(context).extension<SmartSearchTheme>();
}