dark method

Device dark()

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,
    displaySize: displaySize,
    platform: platform,
    name: '${name}_dark',
  );
}