zero analyzer issues

This commit is contained in:
Renan Araujo
2019-03-23 15:02:17 -03:00
parent aacb3fcb65
commit 6696373bd7
18 changed files with 50 additions and 42 deletions

View File

@ -126,6 +126,7 @@ class TextBoxComponent extends PositionComponent with Resizable {
double get currentHeight => _withMargins((currentLine + 1) * _lineHeight);
@override
void render(Canvas c) {
if (_cache == null) {
return;
@ -168,6 +169,7 @@ class TextBoxComponent extends PositionComponent with Resizable {
_cache = await _redrawCache();
}
@override
void update(double dt) {
final int prevCurrentChar = currentChar;
_lifeTime += dt;