isDarkMode function

bool isDarkMode(
  1. BuildContext context
)

Implementation

bool isDarkMode(BuildContext context) {
  if (Theme.of(context).colorScheme == CantonDarkColors.colorScheme) {
    return true;
  } else {
    return false;
  }
}