Skip to content

LinkedHashMap<String, T>(); is changed to <String, T>{}; after dart fix #59934

@tolotrasamuel

Description

@tolotrasamuel

LinkedHashMap<String, T>(); is changed to <String, T>{}; after dart fix

class CollectionState<K, T> {
  final LinkedHashMap<String, T> data;
  final Map<String, List<String>> subsetState;

  CollectionState({
    LinkedHashMap<String, T>? data,
    this.subsetState = const {},
  }) : data = data ?? LinkedHashMap<String, T>();

}

Map is not the same as LinkedHashMap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions