== Why is this an issue?

include::../description.adoc[]

[source,dart]
----
class MyClass {
  final String _str; // Noncompliant, _str private field is never read

  C(this._str);
}
----

== How to fix it

If the field isn't needed, then remove it.

If the field was intended to be used, then add the missing code.

== Resources

* https://dart.dev/tools/diagnostic-messages?utm_source=dartdev&utm_medium=redir&utm_id=diagcode&utm_content=unnecessary_cast#unused_field[Dart compiler diagnostic - unused field]
