Does it support Singleton pattern???
cattlelovegrass opened this issue · 3 comments
cattlelovegrass commented
Does it support Singleton pattern???
cattlelovegrass commented
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?
ethanblake4 commented
You can use the dart_eval binding generator to automatically generate an $Instance
wrapper that can do this
cattlelovegrass commented
OK, Thanks