of static method

AppColor of(
  1. BuildContext context
)

Implementation

static AppColor of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<ColorProvider>()?.color ?? lightTheme;
}