render method
Implementation
@override
Future<Size?> render(int textureId) async {
try {
final value = await methodChannel.invokeMapMethod('render', {
idKey: textureId,
});
final width = value?['width'] as num?;
final height = value?['height'] as num?;
if (width == null || height == null) return null;
final size = Size(width.toDouble(), height.toDouble());
if (size.isEmpty) return null;
return size;
} catch (e) {
if (kDebugMode) print('SfSymbols render: $e');
return null;
}
}