sendToEngine method Null safety

  1. @protected
Future<void> sendToEngine(
  1. Uint8List encodedData
)
protected">@protected

Called by the RestorationManager on itself to send the provided encoded restoration data to the engine.

The encodedData describes the entire bucket hierarchy that makes up the current restoration data.

Subclasses in test frameworks may override this method to capture the restoration data that would have been send to the engine. The captured data can be re-injected into the RestorationManager via the handleRestorationUpdateFromEngine method to restore the state described by the data.

Implementation

@protected
Future<void> sendToEngine(Uint8List encodedData) {
  assert(encodedData != null);
  return SystemChannels.restoration.invokeMethod<void>(
    'put',
    encodedData,
  );
}