PlatformConfiguration class Null safety

Configuration of the platform.

Immutable class (but can't use @immutable in dart:ui)

Constructors

PlatformConfiguration({AccessibilityFeatures accessibilityFeatures: const AccessibilityFeatures._(0), bool alwaysUse24HourFormat: false, bool semanticsEnabled: false, Brightness platformBrightness: Brightness.light, double textScaleFactor: 1.0, List<Locale> locales: const <Locale>[], String? defaultRouteName})
Const constructor for PlatformConfiguration.
const

Properties

accessibilityFeatures AccessibilityFeatures
Additional accessibility features that may be enabled by the platform.
final
alwaysUse24HourFormat bool
The setting indicating whether time should always be shown in the 24-hour format.
final
defaultRouteName String?
The route or path that the embedder requested when the application was launched.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
locales List<Locale>
The full system-reported supported locales of the device.
final
platformBrightness Brightness
The setting indicating the current brightness mode of the host platform. If the platform has no preference, platformBrightness defaults to Brightness.light.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
semanticsEnabled bool
Whether the user has requested that updateSemantics be called when the semantic contents of a view changes.
final
textScaleFactor double
The system-reported text scale.
final

Methods

copyWith({AccessibilityFeatures? accessibilityFeatures, bool? alwaysUse24HourFormat, bool? semanticsEnabled, Brightness? platformBrightness, double? textScaleFactor, List<Locale>? locales, String? defaultRouteName}) PlatformConfiguration
Copy a PlatformConfiguration with some fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited