fix(Dart1.8): fix analyzer warnings
fix(Dart1.8): Promise handling