Android studio 这需要启用不可为空的语言功能—;Dart不可为空语法错误
我已经在我的Android studio 这需要启用不可为空的语言功能—;Dart不可为空语法错误,android-studio,flutter,dart,non-nullable,Android Studio,Flutter,Dart,Non Nullable,我已经在我的pubspec.yaml文件中激活了Dart非空语法实验: class Component_Decorator_A extends Component_Decorator { Component_Decorator_A([Component? component]) : super(component); @override operation() { component?.operation(); print('Component_Decorator_
pubspec.yaml
文件中激活了Dart非空语法实验:
class Component_Decorator_A extends Component_Decorator {
Component_Decorator_A([Component? component]) : super(component);
@override
operation() {
component?.operation();
print('Component_Decorator_A.Operation()');
}
}
名称:测试
描述:一个新的颤振应用。
发布到:“无”
版本:1.0.0+1
环境:
sdk:“>=2.9.0-21.0.dev.flatter=2.9.0