File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ num parseNumber(String source) {
24
24
25
25
// [Scanner.lastMatch] holds the [MatchData] for the most recent call to
26
26
// [Scanner.scan], [Scanner.expect], or [Scanner.matches].
27
- var number = num.parse(scanner.lastMatch[0]);
27
+ var number = num.parse(scanner.lastMatch! [0]! );
28
28
29
29
if (scanner.scan('.')) {
30
30
scanner.expect(RegExp(r'\d+'));
31
- final decimal = scanner.lastMatch[0];
31
+ final decimal = scanner.lastMatch! [0]! ;
32
32
number += int.parse(decimal) / math.pow(10, decimal.length);
33
33
}
34
34
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ num parseNumber(String source) {
24
24
25
25
// [Scanner.lastMatch] holds the [MatchData] for the most recent call to
26
26
// [Scanner.scan], [Scanner.expect], or [Scanner.matches].
27
- var number = num .parse (( scanner.lastMatch! [0 ]) ! );
27
+ var number = num .parse (scanner.lastMatch! [0 ]! );
28
28
29
29
if (scanner.scan ('.' )) {
30
30
scanner.expect (RegExp (r'\d+' ));
You can’t perform that action at this time.
0 commit comments