mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[null-safety] fix the snippets (#69122)
This commit is contained in:
parent
8c3d564ded
commit
e9b18c1d9c
@ -186,6 +186,7 @@ class SampleChecker {
|
|||||||
/// Computes the headers needed for each sample file.
|
/// Computes the headers needed for each sample file.
|
||||||
List<Line> get headers {
|
List<Line> get headers {
|
||||||
return _headers ??= <String>[
|
return _headers ??= <String>[
|
||||||
|
'// @dart = 2.9',
|
||||||
'// generated code',
|
'// generated code',
|
||||||
"import 'dart:async';",
|
"import 'dart:async';",
|
||||||
"import 'dart:convert';",
|
"import 'dart:convert';",
|
||||||
|
Loading…
Reference in New Issue
Block a user