2016-01-28 20:17:21 -08:00

20 lines
294 B
Dart

import 'dart:async';
import 'package:angular2/angular2.dart';
@Injectable()
class LoggerService {
List<String> logs = [];
log(String msg, [bool noTick = false]) {
if (!noTick) {
tick();
}
logs.add(msg);
}
clear() => logs.clear();
tick() => new Future(() {});
}