maybeOf static method
Implementation
static TextStyle maybeOf(BuildContext context) {
final widget =
context.dependOnInheritedWidgetOfExactType<DefaultTextStyle>();
return widget?.style ?? const TextStyle();
}
static TextStyle maybeOf(BuildContext context) {
final widget =
context.dependOnInheritedWidgetOfExactType<DefaultTextStyle>();
return widget?.style ?? const TextStyle();
}