setSingleton method

void setSingleton()

Sets this current instance as _instance.

Implementation

void setSingleton() => _instance = this;