resolve method
Resolves the value for the given platform by precedence, defaulting to the current platform.
Implementation
T resolve([Platforms? platform]) {
switch (platform ?? Platform.instance.current) {
case Platforms.android:
return android;
case Platforms.iOS:
return iOS;
case Platforms.windows:
return windows;
case Platforms.fuschia:
return fuschia;
case Platforms.macOS:
return macOS;
case Platforms.chromeExtension:
return chromeExtension;
case Platforms.linux:
return linux;
case Platforms.web:
return web;
}
}