Skip to content

extends Diagnosticable != with DiagnosticableMixin #49647

@ds84182

Description

@ds84182

In many places, Diagnosticable is refered to directly instead of the mixin itself. This has severe implications when it comes to class hierarchies, because classes that use the mixin are incompatible with the Diagnosticable subsystem and will instead cause TypeErrors.

As a suggested fix:

  1. Add implements Diagnosticable to DiagnosticableMixin
  2. Change Diagnosticable to stop using DiagnosticableMixin (and treat it as an interface, copy the signatures from the methods exposed from DiagnosticableMixin)
  3. Make all subclasses use with DiagnosticableMixin instead of extends Diagnosticable

This is, unfortunately, a breaking change for anyone using extends Diagnosticable.

Right now, the Flutter Inspector stops working when a ShortcutManager is specified in a Shortcuts widget.

cc @gspencergoog @goderbauer

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: inspectorPart of widget inspector in framework.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions