toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'enable': enable,
'brightness': describeEnum(brightness),
'iOSMultitaskBarColor': iOSMultitaskBarColor.value,
'showNavigationBar': showNavigationBar,
'statusBarBackgroundColor': statusBarBackgroundColor.value,
'navigationBarBackgroundColor': navigationBarBackgroundColor.value,
'orientation': describeEnum(orientation),
'backgroundColor': backgroundColor.value,
'initialDeviceIndex': initialDeviceIndex,
'initialPlatform': describeEnum(initialPlatform),
'showBottomBar': showBottomBar,
'showDeviceSlider': showDeviceSlider,
'accentColor': accentColor.value,
'dividerColor': dividerColor.value,
'showColorSelector': showColorSelector,
// 'iosDevices': iosDevices?.map((x) => x.toMap())?.toList(),
// 'androidDevices': androidDevices?.map((x) => x.toMap())?.toList(),
};
}