setNightMode method
Implementation
Future<void> setNightMode(UNightMode mode) async {
if (!value.capabilities.nightMode) return;
await _set("setNightMode", <String, Object?>{"mode": mode.name});
_emit(value.copyWith(nightMode: mode));
}
Future<void> setNightMode(UNightMode mode) async {
if (!value.capabilities.nightMode) return;
await _set("setNightMode", <String, Object?>{"mode": mode.name});
_emit(value.copyWith(nightMode: mode));
}