takeJsonAttributeUpdates method

List<JsonAttributeUpdate> takeJsonAttributeUpdates()
inherited

Returns and clears any pending JSON attribute updates.

Implementation

List<JsonAttributeUpdate> takeJsonAttributeUpdates() {
  final pending = _jsonUpdates[this];
  if (pending == null || pending.isEmpty) {
    return const <JsonAttributeUpdate>[];
  }
  _jsonUpdates[this] = <JsonAttributeUpdate>[];
  return List<JsonAttributeUpdate>.from(pending);
}