save method
Serialize all marker collections to a binary buffer.
Returns
- A Uint8List containing the serialized data on success, or
nullon error.
See also:
- load for restoring marker collections from a serialized buffer.
Implementation
Uint8List? save() {
final OperationResult resultString = objectMethod(
pointerId,
'MapViewMarkerCollections',
'save',
);
if (resultString['gemApiError'] != 0) {
return null;
}
final String encodedResult = resultString['result'];
final Uint8List resultAsUint8List = base64Decode(encodedResult);
return resultAsUint8List;
}