File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/tiled/lib/src/objects Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,7 @@ class TiledObject {
105
105
106
106
bool get isRectangle => rectangle;
107
107
108
- factory TiledObject .parse (
109
- Parser parser) {
108
+ factory TiledObject .parse (Parser parser) {
110
109
final x = parser.getDouble ('x' , defaults: 0 );
111
110
final y = parser.getDouble ('y' , defaults: 0 );
112
111
final height = parser.getDouble ('height' , defaults: 0 );
@@ -137,7 +136,8 @@ class TiledObject {
137
136
final templatePath = parser.getStringOrNull ('template' );
138
137
final templateProvider = templatePath == null
139
138
? null
140
- : parser.templateProviders? .firstWhere ((e) => e.canProvide (templatePath));
139
+ : parser.templateProviders
140
+ ? .firstWhere ((e) => e.canProvide (templatePath));
141
141
final template = templateProvider == null
142
142
? null
143
143
: Template .parse (
You can’t perform that action at this time.
0 commit comments