init static method
Initialise the SDK once at startup. Re-calling disposes the previous instance and replaces it.
Implementation
static Future<Nexus> init(NexusConfig config) async {
_instance?.dispose();
final n = Nexus._(config);
await n._boot();
_instance = n;
return n;
}