updateState method

Future<void> updateState(
  1. Map<String, dynamic> partial
)

Shallow-merges partial into the current state's JSON, rebuilds the state, and syncs to the other side.

Implementation

Future<void> updateState(Map<String, dynamic> partial) {
  _state = _merged(partial);
  return FloatyChannel.sendSystem(_prefix, {'full': false, 'data': partial});
}