isDark static method

bool isDark(
  1. BuildContext context
)

Implementation

static bool isDark(md.BuildContext context) {
  return Theme.of(context).brightness == md.Brightness.dark;
}