of method Null safety

NativeBaseTheme of(
  1. BuildContext context
)

Implementation

static NativeBaseTheme of(BuildContext context) {
  final NativeBaseProvider inheritedTheme =
      context.findAncestorWidgetOfExactType<NativeBaseProvider>()!;

  return inheritedTheme.theme;
}