add nullability annotations to lib/ui/painting.dart (flutter/engine#18374)

* add nullability annotations to lib/ui/painting.dart
This commit is contained in:
Yegor 2020-06-05 10:26:14 -07:00 committed by GitHub
parent 2e6a4880af
commit 9ed3637fa0
2 changed files with 287 additions and 285 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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) {