addImage method
Implementation
@override
Future<void> addImage(String name, Uint8List bytes,
[bool sdf = false]) async {
try {
return await _channel.invokeMethod('style#addImage', <String, Object>{
'name': name,
'bytes': bytes,
'length': bytes.length,
'sdf': sdf
});
} on PlatformException catch (e) {
return Future.error(e);
}
}