toMap method
Converts this orientation information into a map for platform channel serialization.
Implementation
Map<String, Object> toMap() {
return <String, Object>{
'orientationName': orientationName,
'rotationDegrees': rotationDegrees,
'isPortrait': isPortrait,
'isLandscape': isLandscape,
'source': source,
'timestampMillis': timestampMillis,
};
}