mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
add nullability annotations to lib/ui/painting.dart (flutter/engine#18374)
* add nullability annotations to lib/ui/painting.dart
This commit is contained in:
parent
2e6a4880af
commit
9ed3637fa0
File diff suppressed because it is too large
Load Diff
@ -696,11 +696,11 @@ class Canvas {
|
||||
|
||||
/// Draws the given [Image] into the canvas with its top-left corner at the
|
||||
/// given [Offset]. The image is composited into the canvas using the given [Paint].
|
||||
void drawImage(Image image, Offset p, Paint paint) {
|
||||
void drawImage(Image image, Offset offset, Paint paint) {
|
||||
assert(image != null); // image is checked on the engine side
|
||||
assert(engine.offsetIsValid(p));
|
||||
assert(engine.offsetIsValid(offset));
|
||||
assert(paint != null);
|
||||
_drawImage(image, p, paint);
|
||||
_drawImage(image, offset, paint);
|
||||
}
|
||||
|
||||
void _drawImage(Image image, Offset p, Paint paint) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user