darkTheme method
Extension method to directly access dark Theme with any widget without wrapping or with dot operator.
Implementation
Theme darkTheme({Key key, bool isMaterialAppTheme}) => Theme(
data: ThemeData.dark(),
child: this,
isMaterialAppTheme: isMaterialAppTheme,
);