Skip to content

[dart:core] Add List.fill method. #59688

@ykmnkmi

Description

@ykmnkmi
abstract interface class List<T> {
  void fill(T value);
}

No need to pass 2 arguments (0, null) to overwrite all elements.

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.closed-not-plannedClosed as we don't intend to take action on the reported issuetriage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions