Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio 这需要启用不可为空的语言功能—;Dart不可为空语法错误_Android Studio_Flutter_Dart_Non Nullable - Fatal编程技术网

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