of static method

ThemeData of(
  1. BuildContext context
)

Implementation

static md.ThemeData of(md.BuildContext context) {
  return md.Theme.of(context).brightness == md.Brightness.light
      ? light()
      : dark();
}