init method
Implementation
@override
Future<void> init() async {
if (!_initialized) {
logger.i('Initialized');
try {
final msgs = await _getRelayerMessages();
if (msgs != null) {
messages = msgs;
}
logger.d('Successfully Restored records for $name');
logger.v({
'type': "method",
'method': "restore",
'size': messages.length,
});
} catch (e) {
logger.d('Failed to Restore records for $name');
logger.e(e.toString());
} finally {
_initialized = true;
}
}
}