fromMap static method

AndroidScreenInfo fromMap(
  1. Map<String, dynamic> map
)

Implementation

static AndroidScreenInfo fromMap(Map<String, dynamic> map) {
  return AndroidScreenInfo._(
    data: map,
    screenWidth: map['screenWidth'],
    screenHeight: map['screenHeight'],
    windowWidth: map['windowWidth'],
    windowHeight: map['windowHeight'],
    statusBarHeight: map['statusBarHeight'],
    navigationBarHeight: map['navigationBarHeight'],
    scale: map['scale'],
    fontScale: map['fontScale'],
    densityDpi: map['densityDpi'],
    nightMode: map['nightMode'],
  );
}