🏷 Backport some code improvements from the null-safety branch (#603)

This commit is contained in:
Serge Matveenko
2021-01-09 05:25:29 +03:00
committed by GitHub
parent 5b1988ca36
commit 16eaef3bb1
28 changed files with 168 additions and 149 deletions

View File

@ -11,7 +11,9 @@ mixin MultiTouchTapDetector on Game {
}
class DragEvent extends Drag {
Offset initialPosition;
final Offset initialPosition;
DragEvent(this.initialPosition);
void Function(DragUpdateDetails) onUpdate;
void Function() onCancel;