Skip to content

UnmodifiableListView extends class that is not part of Dart API #1481

Closed
@floitschG

Description

@floitschG

From @sgrekhov on June 21, 2016 10:45

Please see https://api.dartlang.org/stable/1.16.0/dart-collection/UnmodifiableListView-class.html

Inheritance Object ListBase UnmodifiableListBase UnmodifiableListView

But UnmodifiableListBase is not part of the Dart API. This has several consequences
First, I think, UnmodifiableListBase shold be made internal _UnmodifiableListBase
Second, it shouldn't be shown in documentation. Otherwise documentation became wrong. For example, it shows operator []= as inherited (it is really inherited from UnmodifiableListBase, but documentation shows operator []= as inherited from ListBase (because UnmodifiableListBase is not part of the API and has no documentation)). But operator []= in ListBase sets the value while operator []= in UnmodifiableListView throws UnsupportedError

Documentation issue regarding showing of internal interfaces is #1173

Copied from original issue: dart-lang/sdk#26736

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurestype-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