toPlatform method
dynamic
toPlatform()
Implementation
dynamic toPlatform() {
if (kIsWeb) {
return toHexColorWeb();
}
if (Platform.isIOS) {
return toHexColor();
}
return [
this.red,
this.blue,
this.green,
];
}