darkTheme method

Theme darkTheme({
  1. Key? key,
})

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

Implementation

Theme darkTheme({Key? key}) => Theme(
      data: ThemeData.dark(),
      child: this,
    );