Error I got: The following ArgumentError was thrown building FutureBuilder<List<Transaction>>(dirty, state: _FutureBuilderState<List<Transaction>>#b741e):When the exception was thrown, this was the stack:
#0 _RegExp.firstM
还有什么能更好地防止开发人员认为我的私有方法需要一个notNull参数(注意,我没有使用Spring框架)?使用@NotNull注释我必须选择哪个图书馆?使用断言私有的myBusinessMethod(对象参数){ assert参数!= null;//.}抛出一个IllegalArgumentException
私有无效myBusinessMethod(对象参数){ if