0

I have upgraded my Flutter project version to the current latest flutter version (2.5.3) after upgraded occurs this error.

Code as follows,

final List<Object> _prop = [];

@override
  List<Object> get prop => _prop;

  EnvironmentState([List prop = const []]) {
    this._prop.addAll(prop);         //        <------ Here is the error occurs
  }

Error as follows,

The argument type 'List<dynamic>' can't be assigned to the parameter type 'Iterable<Object>

How can Store my Buildkite Agent token in AWS Secrets Manager?

So if anyone has any idea please explain how can I configure it?

Reference

4

1 に答える 1

1

List<dynamic>に割り当てられないというエラー メッセージが表示されList<Object>ます。この場合、パラメーターを指定します。デフォルトのリストは動的です。

final List<Object> _prop = [];

  @override
  List<Object> get prop => _prop;

  EnvironmentState([List<Object> prop = const []]) {
    this._prop.addAll(prop);  
  }

于 2021-11-12T09:09:55.177 に答える