dark method
Device
dark()
inherited
dark
convenience method to copy the current device and apply dark theme
Implementation
Device dark() {
return Device(
size: size,
devicePixelRatio: devicePixelRatio,
textScale: textScale,
brightness: Brightness.dark,
safeArea: safeArea,
// ignore: unnecessary_string_escapes
name: '$name\_dark',
);
}