Example #1
0
        public override IDisposable getScope()
        {
            instance = this;
            if (this._binding == null)
            {
                this._binding = new WidgetsBinding();
            }
            WidgetsBinding.instance = this._binding;

            return(new WindowDisposable(this));
        }
Example #2
0
        public override IDisposable getScope() {
            WindowAdapter oldInstance = (WindowAdapter) _instance;
            _instance = this;

            if (this._binding == null) {
                this._binding = new WidgetsBinding();
            }

            SchedulerBinding._instance = this._binding;

            return new WindowDisposable(this, oldInstance);
        }