getStyles static method

DefaultStyles? getStyles(
  1. BuildContext context,
  2. bool nullOk
)

Implementation

static DefaultStyles? getStyles(BuildContext context, bool nullOk) {
  final widget = context.dependOnInheritedWidgetOfExactType<QuillStyles>();
  if (widget == null && nullOk) {
    return null;
  }
  assert(widget != null);
  return widget!.data;
}