Skip to content

Commit a03f49e

Browse files
authored
Account for Dart 3 deprecations and removals (#4950)
Closes #4585
1 parent 83d785a commit a03f49e

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

examples/misc/lib/language_tour/built_in_types.dart

+2-10
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,12 @@ var s2 = """This is also a
203203
multi-line string.""";
204204
// #enddocregion triple-quotes
205205

206+
// MOVE TO library tour?
206207
class SymbolExampleNotUsedYet {
207208
// #docregion symbols
208-
// MOVE TO library tour?
209-
210209
void main() {
211210
print(Function.apply(int.parse, ['11']));
212211
print(Function.apply(int.parse, ['11'], {#radix: 16}));
213-
print(Function.apply(int.parse, ['11a'], {#onError: handleError}));
214-
print(Function.apply(
215-
int.parse, ['11a'], {#radix: 16, #onError: handleError}));
216-
}
217-
218-
int handleError(String source) {
219-
return 0;
220212
}
221-
// #enddocregion symbols
213+
// #enddocregion symbols
222214
}

src/language/built-in-types.md

-9
Original file line numberDiff line numberDiff line change
@@ -383,18 +383,9 @@ The code from the following excerpt isn't actually what is being shown in the pa
383383

384384
<?code-excerpt "misc/lib/language_tour/built_in_types.dart (symbols)"?>
385385
```dart
386-
// MOVE TO library tour?
387-
388386
void main() {
389387
print(Function.apply(int.parse, ['11']));
390388
print(Function.apply(int.parse, ['11'], {#radix: 16}));
391-
print(Function.apply(int.parse, ['11a'], {#onError: handleError}));
392-
print(Function.apply(
393-
int.parse, ['11a'], {#radix: 16, #onError: handleError}));
394-
}
395-
396-
int handleError(String source) {
397-
return 0;
398389
}
399390
```
400391
{% endcomment %}

0 commit comments

Comments
 (0)