of static method

TextStyle of(
  1. BuildContext context
)

Implementation

static TextStyle of(BuildContext context) {
  final result =
      context.dependOnInheritedWidgetOfExactType<NomoDefaultTextStyle>();
  assert(result != null, 'No NomoDefaultTextStyle found in context');
  return result!.style;
}