init static method

Future<Freshpaint> init(
  1. String envId
)

Implementation

static Future<Freshpaint> init(String envId) async {
  if (_instance != null) {
    return _instance!;
  }

  await _channel.invokeMethod("initFreshpaint", <String, dynamic>{
    "envId": envId
  });

  _instance = Freshpaint._init();
  return _instance!;
}