IntlScriptRecognizer constructor

IntlScriptRecognizer()

Return current instance of IntlScriptRecognizer. If no instance created yet, it will construct a new instance first.

This factory is designed for app implementation in global scope that all applied preference can be reused.

Implementation

factory IntlScriptRecognizer() {
  if (_instance == null) {
    _newInstance();
  }

  return _instance!;
}