lightTheme method

Theme lightTheme(
  1. {Key key,
  2. bool isMaterialAppTheme}
)

Extension method to directly access light Theme with any widget without wrapping or with dot operator.

Implementation

Theme lightTheme({Key key, bool isMaterialAppTheme}) => Theme(
      data: ThemeData.light(),
      child: this,
      isMaterialAppTheme: isMaterialAppTheme,
    );