runInAndroidAndIos<T> method
Implementation
Future<T?> runInAndroidAndIos<T>(Future<T> Function() call) async {
return await (switch (this) {
AndroidPlatform() => call,
IosPlatform() => call,
_ => null
})
?.call();
}