Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

[BUG] Receiving avoid dynamic warning in Map with type <String, dynamic> #1191

Closed
@quoc-huynh-cosee

Description

@quoc-huynh-cosee

Environment and configuration

DCM version: 5.5.1
Dart SDK version: 2.19.2

Configuration
dart_code_metrics:
  rules:
    - avoid-dynamic

What did you do?

final myMap = <String, dynamic>{};

What did you expect to happen?

No lint warning.

What actually happened?

I'm receiving the hint Avoid using dynamic type.

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions