Skip to content

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

@sgrekhov

Description

@sgrekhov

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 dart-lang/dartdoc#1173

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions