diff --git a/src/util/dart_class_parser.ts b/src/util/dart_class_parser.ts index 1747e52..0ac2e55 100644 --- a/src/util/dart_class_parser.ts +++ b/src/util/dart_class_parser.ts @@ -131,7 +131,7 @@ function parseLinesToConstructor( const isNamed = nameLine.includes(`${className}.`); const constructorName = isNamed - ? nameLine.substring(nameLine.indexOf(".") + 1, nameLine.indexOf("({")) + ? nameLine.substring(nameLine.indexOf(".") + 1, nameLine.indexOf("(")) : null; const fieldsLines = lines