ModeExtension extension

Check the current theme mode of the application.

on

Properties

isDark bool

Available on BuildContext, provided by the ModeExtension extension

Returns true if the current theme mode is dark.
no setter
isLight bool

Available on BuildContext, provided by the ModeExtension extension

Returns true if the current theme mode is light.
no setter
mode Brightness

Available on BuildContext, provided by the ModeExtension extension

Returns the current platform brightness of the application.
no setter