静态问题:
Instance members can't be accessed from a static method.
(实例成员不能从静态方法访问。)
漏写return返回
The body might complete normally, causing 'null' to be returned, but the return type, 'FutureOr<List<实体类>>', is a potentially non-nullable type.
(主体可能正常完成,导致返回'null',但返回类型'FutureOr<List<实体类>>'是一个潜在的非空类型。)
解决:1、检查是否写清return返回。
详解:https://blog.csdn.net/qq_49583834/article/details/120617472
字符越界:
RangeError (index): Invalid value: Not in inclusive range 0..2: 3
(RangeError(index):无效值:不在包含范围0..2: 3)
解决:请检查Flutter的字符是否越界。
4. 字段没有初始化
LateInitializationError: Field 'rows' has not been initialized.
(LateInitializationError:字段'rows'没有初始化。)
解决:字段初始化。