@@ -265,15 +265,17 @@ Future<TextureAtlasData> _parse(
265265 var currentPackage = package;
266266 var finalPath = fullPath;
267267
268- // Check for package path in the full path (which may already include assetsPrefix)
268+ // Check for package path in the full path
269+ //(which may already include assetsPrefix)
269270 const packageKeyword = 'packages/' ;
270271 final packageIndex = finalPath.indexOf (packageKeyword);
271272 if (packageIndex != - 1 ) {
272273 final subPath = finalPath.substring (packageIndex + packageKeyword.length);
273274 final parts = subPath.split ('/' );
274275 if (parts.length > 1 ) {
275276 currentPackage ?? = parts[0 ];
276- // Clean the path by removing everything up to and including the package name
277+ // Clean the path by removing everything up to
278+ //and including the package name
277279 finalPath = parts.sublist (1 ).join ('/' );
278280 }
279281 }
@@ -313,10 +315,12 @@ Future<TextureAtlasData> _parse(
313315 while (lineQueue.isNotEmpty) {
314316 final line = lineQueue.first.trim ();
315317
316- // Check if this line looks like a texture file (has file extension)
318+ // Check if this line looks like a texture file
319+ // (has file extension)
317320 if (_isTextureFile (line)) {
318321 // Peek at the next line to see if it's a region or a new page.
319- // Regions are followed by properties like 'bounds:', 'rotate:', 'xy:', 'offsets:'.
322+ // Regions are followed by properties
323+ // like 'bounds:', 'rotate:', 'xy:', 'offsets:'.
320324 // Pages are followed by 'size:', 'format:', 'filter:', 'repeat:'.
321325 if (lineQueue.length > 1 ) {
322326 final nextLine = lineQueue.elementAt (1 ).trim ();
@@ -522,6 +526,7 @@ Region _parseRegion(ListQueue<String> lineQueue, Page page) {
522526 try {
523527 extractedIndex = int .parse (indexMatch.group (1 )! );
524528 name = name.substring (0 , indexMatch.start);
529+ // ignore: avoid_catches_without_on_clauses
525530 } catch (_) {
526531 // Ignore parsing errors for very large numbers
527532 }
0 commit comments