@@ -102,6 +102,7 @@ class Color {
102102 /// For example, to get a fully opaque orange, you would use `const
103103 /// Color(0xFFFF9000)` (` FF` for the alpha, ` FF` for the red, ` 90` for the
104104 /// green, and `00` for the blue).
105+ @pragma ('vm:entry-point' )
105106 const Color (int value) : value = value & 0xFFFFFFFF ;
106107
107108 /// Construct a color from the lower 8 bits of four integers.
@@ -1485,9 +1486,14 @@ class _ImageInfo {
14851486 _ImageInfo (this .width, this .height, this .format, this .rowBytes) {
14861487 rowBytes ?? = width * 4 ;
14871488 }
1489+
1490+ @pragma ('vm:entry-point' , 'get' )
14881491 int width;
1492+ @pragma ('vm:entry-point' , 'get' )
14891493 int height;
1494+ @pragma ('vm:entry-point' , 'get' )
14901495 int format;
1496+ @pragma ('vm:entry-point' , 'get' )
14911497 int rowBytes;
14921498}
14931499
@@ -1502,6 +1508,7 @@ class Image extends NativeFieldWrapperClass2 {
15021508 /// or extended directly.
15031509 ///
15041510 /// To obtain an [Image] object, use [instantiateImageCodec] .
1511+ @pragma ('vm:entry-point' )
15051512 Image ._();
15061513
15071514 /// The number of image pixels along the image's horizontal axis.
@@ -1549,6 +1556,7 @@ class FrameInfo extends NativeFieldWrapperClass2 {
15491556 ///
15501557 /// To obtain an instance of the [FrameInfo] interface, see
15511558 /// [Codec.getNextFrame] .
1559+ @pragma ('vm:entry-point' )
15521560 FrameInfo ._();
15531561
15541562 /// The duration this frame should be shown.
@@ -1566,6 +1574,7 @@ class Codec extends NativeFieldWrapperClass2 {
15661574 ///
15671575 /// To obtain an instance of the [Codec] interface, see
15681576 /// [instantiateImageCodec] .
1577+ @pragma ('vm:entry-point' )
15691578 Codec ._();
15701579
15711580 /// Number of frames in this image.
@@ -1752,6 +1761,7 @@ enum PathOperation {
17521761/// used to create clip regions using [Canvas.clipPath] .
17531762class Path extends NativeFieldWrapperClass2 {
17541763 /// Create a new empty [Path] object.
1764+ @pragma ('vm:entry-point' )
17551765 Path () { _constructor (); }
17561766 void _constructor () native 'Path_constructor' ;
17571767
@@ -2401,6 +2411,7 @@ class ImageFilter extends NativeFieldWrapperClass2 {
24012411class Shader extends NativeFieldWrapperClass2 {
24022412 /// This class is created by the engine, and should not be instantiated
24032413 /// or extended directly.
2414+ @pragma ('vm:entry-point' )
24042415 Shader ._();
24052416}
24062417
@@ -2664,6 +2675,7 @@ class ImageShader extends Shader {
26642675 /// direction and y direction respectively. The fourth argument gives the
26652676 /// matrix to apply to the effect. All the arguments are required and must not
26662677 /// be null.
2678+ @pragma ('vm:entry-point' )
26672679 ImageShader (Image image, TileMode tmx, TileMode tmy, Float64List matrix4) :
26682680 assert (image != null ), // image is checked on the engine side
26692681 assert (tmx != null ),
@@ -2828,6 +2840,7 @@ class Canvas extends NativeFieldWrapperClass2 {
28282840 ///
28292841 /// To end the recording, call [PictureRecorder.endRecording] on the
28302842 /// given recorder.
2843+ @pragma ('vm:entry-point' )
28312844 Canvas (PictureRecorder recorder, [ Rect cullRect ]) : assert (recorder != null ) {
28322845 if (recorder.isRecording)
28332846 throw new ArgumentError ('"recorder" must not already be associated with another Canvas.' );
@@ -3545,6 +3558,7 @@ class Picture extends NativeFieldWrapperClass2 {
35453558 /// or extended directly.
35463559 ///
35473560 /// To create a [Picture] , use a [PictureRecorder] .
3561+ @pragma ('vm:entry-point' )
35483562 Picture ._();
35493563
35503564 /// Creates an image from this picture.
@@ -3575,6 +3589,7 @@ class PictureRecorder extends NativeFieldWrapperClass2 {
35753589 /// Creates a new idle PictureRecorder. To associate it with a
35763590 /// [Canvas] and begin recording, pass this [PictureRecorder] to the
35773591 /// [Canvas] constructor.
3592+ @pragma ('vm:entry-point' )
35783593 PictureRecorder () { _constructor (); }
35793594 void _constructor () native 'PictureRecorder_constructor' ;
35803595
@@ -3640,4 +3655,3 @@ Future<T> _futurize<T>(_Callbacker<T> callbacker) {
36403655 throw new Exception (error);
36413656 return completer.future;
36423657}
3643-
0 commit comments