of static method
Retrieves the PensilThemeData from the closest ancestor PensilTheme widget.
Implementation
static PensilThemeData of(BuildContext context) {
final pensilTheme =
context.dependOnInheritedWidgetOfExactType<PensilTheme>();
assert(
pensilTheme != null,
'You must have a StreamFeedTheme widget at the top of your widget tree',
);
return pensilTheme!.data;
}