init method
Registers a texture for config, returning its id, or null if the symbol
could not be created.
Implementation
@override
Future<int?> init(SfSymbolConfig config) async {
try {
final result = await methodChannel.invokeMapMethod(
'init',
encodeConfig(config),
);
return (result?[idKey] as num?)?.toInt();
} catch (e) {
if (kDebugMode) print('SfSymbols init: $e');
return null;
}
}