Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 394b81e

Browse files
authored
Make dart:ui#Paint final to allow changes/disallow implementing. (#50557)
Closes flutter/flutter#142937.
1 parent 2e929f5 commit 394b81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/painting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ enum Clip {
10871087
///
10881088
/// Most APIs on [Canvas] take a [Paint] object to describe the style
10891089
/// to use for that operation.
1090-
class Paint {
1090+
final class Paint {
10911091
/// Constructs an empty [Paint] object with all fields initialized to
10921092
/// their defaults.
10931093
Paint();

0 commit comments

Comments
 (0)