instance property

MobileRag get instance

Get the singleton instance.

Throws StateError if initialize has not been called.

Implementation

static MobileRag get instance {
  if (_instance == null) {
    throw StateError(
      'MobileRag not initialized. Call MobileRag.initialize() first.',
    );
  }
  return _instance!;
}