SmsQuery constructor Null safety

SmsQuery()

Implementation

factory SmsQuery() {
  if (_instance == null) {
    const MethodChannel methodChannel = MethodChannel(
      "plugins.juliusgithaiga.com/querySMS",
      JSONMethodCodec(),
    );
    _instance = SmsQuery._private(methodChannel);
  }
  return _instance!;
}