예제 #1
0
파일: form.cs 프로젝트: ragdollKB/2dFighter
        public override bool updateShouldNotify(InheritedWidget _old)
        {
            _FormScope old = _old as _FormScope;

            return(this._generation != old._generation);
        }
예제 #2
0
파일: form.cs 프로젝트: ragdollKB/2dFighter
        public static FormState of(BuildContext context)
        {
            _FormScope scope = (_FormScope)context.inheritFromWidgetOfExactType(typeof(_FormScope));

            return(scope?._formState);
        }
예제 #3
0
        public static FormState of(BuildContext context)
        {
            _FormScope scope = context.dependOnInheritedWidgetOfExactType <_FormScope>();

            return(scope?._formState);
        }