Enable avoid_print lint. (#91332)

This commit is contained in:
Ian Hickson
2021-10-07 09:53:03 -07:00
committed by GitHub
parent 3c6c2aa50a
commit cb378edc9e
85 changed files with 359 additions and 246 deletions

View File

@@ -98,7 +98,7 @@ Future<void> main() async {
final HttpServer httpServer =
await HttpServer.bindSecure('localhost', 0, serverContext);
final int port = httpServer.port;
print('Listening on port $port.');
debugPrint('Listening on port $port.');
// Initializes bindings before using any platform channels.
WidgetsFlutterBinding.ensureInitialized();
@@ -193,7 +193,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
).toList();
final DateTime started = DateTime.now();
Future.wait(futures).then((_) {
print(
debugPrint(
'===image_list=== all loaded in ${DateTime.now().difference(started).inMilliseconds}ms.',
);
});