initialize static method

Future<void> initialize({
  1. double threshold = _kNSFWThreshold,
})

Initializes the singleton instance. No-op if already initialized.

Implementation

static Future<void> initialize({double threshold = _kNSFWThreshold}) async {
  if (_instance != null) return;
  _instance = await load(threshold: threshold);
}