refactor commands to move out re-usable functionality

This commit is contained in:
Devon Carew
2016-01-21 09:38:46 -08:00
parent 5776c6e3a7
commit 5daf58ce1e
10 changed files with 186 additions and 143 deletions

View File

@@ -47,12 +47,6 @@ abstract class FlutterCommand extends Command {
connectToDevices();
}
void inheritFromParent(FlutterCommand other) {
applicationPackages = other.applicationPackages;
toolchain = other.toolchain;
devices = other.devices;
}
Future<int> run() async {
if (requiresProjectRoot && !validateProjectRoot())
return 1;