Skip to content

Commit

Permalink
Merge pull request #53 from 2d-inc/trim_default_value
Browse files Browse the repository at this point in the history
Provide defaults for trim start/end/offset
  • Loading branch information
luigi-rosso authored Mar 11, 2019
2 parents 9cae870 + f190864 commit 4f1d4ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flare_dart/lib/actor_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ abstract class ActorStroke {
TrimPath get trim => _trim;
bool get isTrimmed => _trim != TrimPath.Off;

double _trimStart;
double _trimStart = 0.0;
double get trimStart => _trimStart;
set trimStart(double value) {
if (_trimStart == value) {
Expand All @@ -154,7 +154,7 @@ abstract class ActorStroke {
markPathEffectsDirty();
}

double _trimEnd;
double _trimEnd = 0.0;
double get trimEnd => _trimEnd;
set trimEnd(double value) {
if (_trimEnd == value) {
Expand All @@ -164,7 +164,7 @@ abstract class ActorStroke {
markPathEffectsDirty();
}

double _trimOffset;
double _trimOffset = 0.0;
double get trimOffset => _trimOffset;
set trimOffset(double value) {
if (_trimOffset == value) {
Expand Down

0 comments on commit 4f1d4ff

Please sign in to comment.