PlatformConfiguration constructor Null safety

const PlatformConfiguration(
  1. {AccessibilityFeatures accessibilityFeatures = const AccessibilityFeatures._(0),
  2. bool alwaysUse24HourFormat = false,
  3. bool semanticsEnabled = false,
  4. Brightness platformBrightness = Brightness.light,
  5. double textScaleFactor = 1.0,
  6. List<Locale> locales = const <Locale>[],
  7. String? defaultRouteName}
)

Const constructor for PlatformConfiguration.

Implementation

const PlatformConfiguration({
  this.accessibilityFeatures = const AccessibilityFeatures._(0),
  this.alwaysUse24HourFormat = false,
  this.semanticsEnabled = false,
  this.platformBrightness = Brightness.light,
  this.textScaleFactor = 1.0,
  this.locales = const <Locale>[],
  this.defaultRouteName,
});