init method

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

Initializes any data needed by this model.

Implementation

@override
Future<void> init() async {
    models.settings.addListener(notifyListeners);
	final info = await PackageInfo.fromPlatform();
	version = "${info.version}+${info.buildNumber}";
	if (services.error != null) setMessage(severity: Severity.critical, text: services.error!);
}