dart extends 覆盖规则

摘要: 1,不覆写super的变量,child会自动继承super的变量。即使是在child里给super赋值,child里也是可以访问到的,可能是因为引用的关系。 2,只要覆写了super的变量,只给super赋值,那么当前child是没有值的 阅读全文
posted @ 2022-12-31 11:55 emisunshine 阅读(34) 评论(0) 推荐(0)

Flutter statecontroller.update(MaterialState.disabled,false)无效

摘要: 因为中间会调用 void initStatesController() { if (widget.statesController == null) { internalStatesController = MaterialStatesController(); } statesController 阅读全文
posted @ 2022-12-25 09:20 emisunshine 阅读(76) 评论(0) 推荐(0)

pgsql 自定义函数

摘要: CREATE OR REPLACE FUNCTION test1(id INTEGER,id1 INTEGER) RETURNS INTEGER LANGUAGE plpgsql AS $$ declare count integer; begin count = (select array_pos 阅读全文
posted @ 2022-11-01 08:56 emisunshine 阅读(269) 评论(0) 推荐(0)

JSON::ParserError - 416: unexpected token at

摘要: rm -rf ~/.cocoapods/repos/Spec_Lockandrm -rf ~/.cocoapods/repos/trunk/ 阅读全文
posted @ 2022-07-24 12:07 emisunshine 阅读(292) 评论(0) 推荐(0)