示例#1
0
        public override bool updateShouldNotify(InheritedWidget _old)
        {
            _FormScope old = _old as _FormScope;

            return(this._generation != old._generation);
        }
示例#2
0
        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);
        }