effectSupport method
Which symbol effects the running OS version can play.
Implementation
@override
Future<SfSymbolEffectSupport> effectSupport() async {
try {
final level = await methodChannel.invokeMethod<String>('effectsSupported');
return switch (level) {
// '18' and '17' are what 0.5.0's iOS side reported, kept in case a
// stale build of it is paired with this Dart code.
'full' || '18' => SfSymbolEffectSupport.full,
'partial' || '17' => SfSymbolEffectSupport.partial,
_ => SfSymbolEffectSupport.none,
};
} catch (e) {
if (kDebugMode) print('SfSymbols effectsSupported: $e');
return SfSymbolEffectSupport.none;
}
}