Add some more new lints (#91659)
This commit is contained in:
@@ -181,8 +181,14 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
|
||||
// This test only runs on Android so we can assume path separator is '/'.
|
||||
final File file = File('${outDir?.path}/$kEventsFileName');
|
||||
await file.writeAsBytes(data.buffer.asUint8List(0, data.lengthInBytes), flush: true);
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
showMessage(context, 'Saved original events to ${file.path}');
|
||||
} catch (e) {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
showMessage(context, 'Failed saving ${e.toString()}');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,8 +163,14 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
|
||||
// This test only runs on Android so we can assume path separator is '/'.
|
||||
final File file = File('${outDir.path}/$kEventsFileName');
|
||||
await file.writeAsBytes(data.buffer.asUint8List(0, data.lengthInBytes), flush: true);
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
showMessage(context, 'Saved original events to ${file.path}');
|
||||
} catch (e) {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
showMessage(context, 'Failed saving ${e.toString()}');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user