File tree Expand file tree Collapse file tree 8 files changed +15
-15
lines changed
macrobenchmarks/lib/src/web
test_apps/stocks/lib/i18n
packages/flutter_tools/lib/src Expand file tree Collapse file tree 8 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ abstract class Recorder {
164
164
///
165
165
/// Example:
166
166
///
167
- /// ```
167
+ /// ```dart
168
168
/// class BenchForLoop extends RawRecorder {
169
169
/// BenchForLoop() : super(name: benchmarkName);
170
170
///
@@ -219,7 +219,7 @@ abstract class RawRecorder extends Recorder {
219
219
///
220
220
/// Example:
221
221
///
222
- /// ```
222
+ /// ```dart
223
223
/// class BenchDrawCircle extends SceneBuilderRecorder {
224
224
/// BenchDrawCircle() : super(name: benchmarkName);
225
225
///
@@ -311,7 +311,7 @@ abstract class SceneBuilderRecorder extends Recorder {
311
311
///
312
312
/// Example:
313
313
///
314
- /// ```
314
+ /// ```dart
315
315
/// class BenchListView extends WidgetRecorder {
316
316
/// BenchListView() : super(name: benchmarkName);
317
317
///
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import 'stock_strings_es.dart';
21
21
/// localizationDelegates list, and the locales they support in the app's
22
22
/// supportedLocales list. For example:
23
23
///
24
- /// ```
24
+ /// ```dart
25
25
/// import 'i18n/stock_strings.dart';
26
26
///
27
27
/// return MaterialApp(
@@ -36,7 +36,7 @@ import 'stock_strings_es.dart';
36
36
/// Please make sure to update your pubspec.yaml to include the following
37
37
/// packages:
38
38
///
39
- /// ```
39
+ /// ```yaml
40
40
/// dependencies:
41
41
/// # Internationalization support.
42
42
/// flutter_localizations:
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ class BlinkTraceEvent {
426
426
///
427
427
/// Sample event encoded as JSON (the data is bogus, this just shows the format):
428
428
///
429
- /// ```
429
+ /// ```json
430
430
/// {
431
431
/// "name": "myName",
432
432
/// "cat": "category,list",
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const List<String> dartdocDirectiveCanaryFiles = <String>[
41
41
/// sample code where the sequence is perfectly legal, e.g. for required named
42
42
/// parameters of a method:
43
43
///
44
- /// ```
44
+ /// ```dart
45
45
/// void foo({@required int bar});
46
46
/// ```
47
47
void checkForUnresolvedDirectives (Directory dartDocDir) {
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ String? currentLocale;
31
31
///
32
32
/// The following outputs the generated Dart code to the console as a dry run:
33
33
///
34
- /// ```
34
+ /// ```bash
35
35
/// dart dev/tools/localization/bin/gen_date_localizations.dart
36
36
/// ```
37
37
///
38
38
/// If the data looks good, use the `--overwrite` option to overwrite the
39
39
/// lib/src/l10n/date_localizations.dart file:
40
40
///
41
- /// ```
41
+ /// ```bash
42
42
/// dart dev/tools/localization/bin/gen_date_localizations.dart --overwrite
43
43
/// ```
44
44
Future <void > main (List <String > rawArgs) async {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import 'dart:async';
31
31
/// Rationale:
32
32
///
33
33
/// Consider the following snippet:
34
- /// ```
34
+ /// ```dart
35
35
/// try {
36
36
/// await foo();
37
37
/// ...
@@ -55,7 +55,7 @@ import 'dart:async';
55
55
/// [asyncGuard] is intended to wrap awaited expressions occurring in a `try`
56
56
/// block. The behavior described above gives the behavior that users
57
57
/// intuitively expect from `await` . Consider the snippet:
58
- /// ```
58
+ /// ```dart
59
59
/// try {
60
60
/// await asyncGuard(() async {
61
61
/// var c = Completer();
Original file line number Diff line number Diff line change @@ -40,19 +40,19 @@ import '../vmservice.dart';
40
40
///
41
41
/// With an application already running, a HotRunner can be attached to it
42
42
/// with:
43
- /// ```
43
+ /// ```bash
44
44
/// $ flutter attach --debug-url http://127.0.0.1:12345/QqL7EFEDNG0=/
45
45
/// ```
46
46
///
47
47
/// If `--disable-service-auth-codes` was provided to the application at startup
48
48
/// time, a HotRunner can be attached with just a port:
49
- /// ```
49
+ /// ```bash
50
50
/// $ flutter attach --debug-port 12345
51
51
/// ```
52
52
///
53
53
/// Alternatively, the attach command can start listening and scan for new
54
54
/// programs that become active:
55
- /// ```
55
+ /// ```bash
56
56
/// $ flutter attach
57
57
/// ```
58
58
/// As soon as a new VM Service is detected the command attaches to it and
Original file line number Diff line number Diff line change @@ -692,7 +692,7 @@ class LocalizationsGenerator {
692
692
/// Whether to generate the Dart localization methods with named parameters.
693
693
///
694
694
/// If this sets to true, the generated Dart localization methods will be:
695
- /// ```
695
+ /// ```dart
696
696
/// String helloWorld({required String name});
697
697
/// ```
698
698
final bool useNamedParameters;
You can’t perform that action at this time.
0 commit comments