@@ -139,7 +139,7 @@ void recursiveCopy(Directory source, Directory target) {
139139 dest.writeAsBytesSync (entity.readAsBytesSync ());
140140 // Preserve executable bit
141141 final String modes = entity.statSync ().modeString ();
142- if (modes != null && modes .contains ('x' )) {
142+ if (modes.contains ('x' )) {
143143 makeExecutable (dest);
144144 }
145145 }
@@ -276,7 +276,6 @@ Future<Process> startProcess(
276276 bool isBot = true , // set to false to pretend not to be on a bot (e.g. to test user-facing outputs)
277277 String ? workingDirectory,
278278}) async {
279- assert (isBot != null );
280279 final String command = '$executable ${arguments ?.join (" " ) ?? "" }' ;
281280 final String finalWorkingDirectory = workingDirectory ?? cwd;
282281 final Map <String , String > newEnvironment = Map <String , String >.from (environment ?? < String , String > {});
@@ -504,7 +503,6 @@ Future<Process> startFlutter(String command, {
504503 Map <String , String > environment = const < String , String > {},
505504 bool isBot = true , // set to false to pretend not to be on a bot (e.g. to test user-facing outputs)
506505}) {
507- assert (isBot != null );
508506 final List <String > args = flutterCommandArgs (command, options);
509507 return startProcess (
510508 path.join (flutterDirectory.path, 'bin' , 'flutter' ),
@@ -635,48 +633,6 @@ Future<void> getNewGallery(String revision, Directory galleryDir) async {
635633 });
636634}
637635
638- void checkNotNull (Object o1,
639- [Object o2 = 1 ,
640- Object o3 = 1 ,
641- Object o4 = 1 ,
642- Object o5 = 1 ,
643- Object o6 = 1 ,
644- Object o7 = 1 ,
645- Object o8 = 1 ,
646- Object o9 = 1 ,
647- Object o10 = 1 ]) {
648- if (o1 == null ) {
649- throw 'o1 is null' ;
650- }
651- if (o2 == null ) {
652- throw 'o2 is null' ;
653- }
654- if (o3 == null ) {
655- throw 'o3 is null' ;
656- }
657- if (o4 == null ) {
658- throw 'o4 is null' ;
659- }
660- if (o5 == null ) {
661- throw 'o5 is null' ;
662- }
663- if (o6 == null ) {
664- throw 'o6 is null' ;
665- }
666- if (o7 == null ) {
667- throw 'o7 is null' ;
668- }
669- if (o8 == null ) {
670- throw 'o8 is null' ;
671- }
672- if (o9 == null ) {
673- throw 'o9 is null' ;
674- }
675- if (o10 == null ) {
676- throw 'o10 is null' ;
677- }
678- }
679-
680636/// Splits [from] into lines and selects those that contain [pattern] .
681637Iterable <String > grep (Pattern pattern, {required String from}) {
682638 return from.split ('\n ' ).where ((String line) {
0 commit comments