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.
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.