toMap method
Converts this display information to a map using the native field names.
Implementation
Map<String, Object> toMap() {
return <String, Object>{
'widthPixels': widthPixels,
'heightPixels': heightPixels,
'density': density,
'densityDpi': densityDpi,
'refreshRate': refreshRate,
'supportedRefreshRates': supportedRefreshRates,
'isHdrSupported': isHdrSupported,
'supportedHdrTypes': supportedHdrTypes,
};
}