of static method
Implementation
static TextStyle of(BuildContext context) {
final widget =
context.dependOnInheritedWidgetOfExactType<DefaultTextStyle>();
if (widget != null) {
return widget.style;
}
return const TextStyle();
}
static TextStyle of(BuildContext context) {
final widget =
context.dependOnInheritedWidgetOfExactType<DefaultTextStyle>();
if (widget != null) {
return widget.style;
}
return const TextStyle();
}