Closed cattlelovegrass closed 9 months ago
class HttpManager { static final HttpManager _instance = HttpManager._internal();
factory HttpManager() { return _instance; }
HttpManager._internal(); } if this code implements $Instance, Is it the same as usual?
You can use the dart_eval binding generator to automatically generate an $Instance wrapper that can do this
$Instance
OK, Thanks
class HttpManager { static final HttpManager _instance = HttpManager._internal();
factory HttpManager() { return _instance; }
HttpManager._internal(); } if this code implements $Instance, Is it the same as usual?