Skip to content

Make CustomTargetContentPosition constructor const #225

@SergeyDertan

Description

@SergeyDertan

Existing behavior:
CustomTargetContentPosition instances could only be created at runtime, even if all arguments were compile-time constants.

Change:
Allowing developers to create compile-time constant instances. This enables:
• Reduced widget rebuilds when the same position configuration is reused.
• Minor performance improvements and memory savings through compile-time instantiation.

Motivation:
Making the constructor const is a safe, non-breaking optimization that aligns with Dart best practices for immutable configuration objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions