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