sendToEngine method

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

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

@override
Future<void> sendToEngine(Uint8List encodedData) async {
  _restorationData = TestRestorationData._(encodedData);
}