Run dart fix in lib

This commit is contained in:
LukasPoque
2023-11-06 14:27:16 +01:00
parent 8120cbea6d
commit 851d2df84e
5 changed files with 14 additions and 17 deletions

View File

@@ -25,8 +25,9 @@ class AnimationBuilder {
}
MorphAnimationData build() {
if (availableMorphs.isEmpty == 0 || _duration == 0 || _frameLengthInMs == 0)
if (availableMorphs.isEmpty || _duration == 0 || _frameLengthInMs == 0) {
throw Exception();
}
int numFrames = _duration * 1000 ~/ _frameLengthInMs;
@@ -64,10 +65,10 @@ class AnimationBuilder {
AnimationBuilder interpolateMorphWeights(
double start, double end, double startValue, double endValue) {
this._interpMorphStart = start;
this._interpMorphEnd = end;
this._interpMorphStartValue = startValue;
this._interpMorphEndValue = endValue;
_interpMorphStart = start;
_interpMorphEnd = end;
_interpMorphStartValue = startValue;
_interpMorphEndValue = endValue;
return this;
}