Skip to content

Paint() need a copyWith method like ThemeData #40497

@Solido

Description

@Solido

When pushing some works on canvas, it soon become very verbose and error prone when you need to declare painters.

You need to restart full setup of a Paint() that share parameters when sometimes you just need to mutate a field.

You end up with a lot of overlapping declarations.

Please consider adding a copyWith method like ThemeData, this will drop my lines count by high ratio.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.dependency: dartDart team may need to help usf: material designflutter/packages/flutter/material repository.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