Skip to content

[docs] BytesBuilder docs reference pre-class-modifiers statement #60399

Open
@navaronbracke

Description

@navaronbracke

I was looking into implementing an algorithm using a BytesBuilder.
Having never used it before, I had a look in its docs and noticed a statement that should be outdated with the introduction of class modifiers.

The statement at
https://github.com/dart-lang/sdk/blob/main/sdk/lib/internal/bytes_builder.dart#L28-L30
contradicts what the class modifiers for Uint8List actually enforce in https://github.com/dart-lang/sdk/blob/main/sdk/lib/typed_data/typed_data.dart#L866-L868

See also the doc comment in Uint8List, which states that implementing / extending should be impossible.

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-typed-datatype-documentationA request to add or improve documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions