You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KtList (and others) has no const factories with const initializers. For example, KtList.of(1, 2, 3). And therefore no available pass constructed list with const to const constructors:
class State {
final KtList<int> keys;
const State(this.keys);
}
...
final state = const State(KtList.of(1, 2, 3, 4)); //no compile
The text was updated successfully, but these errors were encountered:
KtList (and others) has no const factories with const initializers. For example, KtList.of(1, 2, 3). And therefore no available pass constructed list with const to const constructors:
The text was updated successfully, but these errors were encountered: