Make dart:ui#Paint final to allow changes/disallow implementing. (flutter/engine#50557)

Closes https://github.com/flutter/flutter/issues/142937.
This commit is contained in:
Matan Lurey
2024-02-12 15:30:32 -08:00
committed by GitHub
parent 51c9fc1c08
commit 154fa183ad

View File

@@ -1087,7 +1087,7 @@ enum Clip {
///
/// Most APIs on [Canvas] take a [Paint] object to describe the style
/// to use for that operation.
class Paint {
final class Paint {
/// Constructs an empty [Paint] object with all fields initialized to
/// their defaults.
Paint();