commitBatchUpdate method
Commit the pending batch updates
Implementation
@override
Future<bool> commitBatchUpdate() async {
if (!_batchUpdateInProgress) {
return false;
}
try {
final success =
await bridgeChannel.invokeMethod<bool>('commitBatchUpdate', {
'updates': _pendingBatchUpdates,
});
_batchUpdateInProgress = false;
_pendingBatchUpdates.clear();
return success ?? false;
} catch (e) {
_batchUpdateInProgress = false;
_pendingBatchUpdates.clear();
return false;
}
}