toMapPlatform method
dynamic
toMapPlatform()
Implementation
dynamic toMapPlatform() {
if (Platform.isAndroid) {
return toMapAndroid();
}
if (Platform.isIOS) {
return toMapiOS();
}
if (kIsWeb) {
return toWeb();
}
throw UnsupportedError("platform not supported yet");
}