of static method

PiThemeData of(
  1. BuildContext context
)

Get the current PiThemeData from the context

Implementation

static PiThemeData of(BuildContext context) {
  final _PiThemeInherited? theme =
      context.dependOnInheritedWidgetOfExactType<_PiThemeInherited>();
  return theme?.data ?? PiThemeData();
}