init method

  1. @override
Future<void> init()
override

Initializes any data needed by this model.

Implementation

@override
Future<void> init() async {
  models.messages.stream.onMessage<BurtLog>(
    name: BurtLog().messageName,
    constructor: BurtLog.fromBuffer,
    callback: handleLog,
  );
  saveToFileTimer = Timer.periodic(saveToFileInterval, saveToFile);
}