SystemInfo.fromMap constructor
Construct from a dynamic map returned by the platform plugin.
Implementation
factory SystemInfo.fromMap(Map<String, dynamic> m) {
return SystemInfo(
isEdgeToEdgeEnabled: m['isEdgeToEdgeEnabled'] as bool? ?? false,
isEdgeToEdgeSupported: m['isEdgeToEdgeSupported'] as bool? ?? false,
androidVersion: m['androidVersion'] as int?,
androidRelease: m['androidRelease'] as String?,
systemBarsTop: (m['systemBarsTop'] as int?) ?? 0,
systemBarsBottom: (m['systemBarsBottom'] as int?) ?? 0,
systemBarsLeft: (m['systemBarsLeft'] as int?) ?? 0,
systemBarsRight: (m['systemBarsRight'] as int?) ?? 0,
statusBarsHeight: (m['statusBarsHeight'] as int?) ?? 0,
navigationBarsHeight: (m['navigationBarsHeight'] as int?) ?? 0,
hasNavigationBar: m['hasNavigationBar'] as bool? ?? false,
);
}