You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
525 B
Dart

import 'dart:mirrors';
abstract class AOCBase {
num answerA;
num answerB;
String get classString => reflect(this).toString().split("'")[1];
String get classStringTest => classString + 'test';
Future<void> testa() => a(test: true);
Future<void> testb() => b(test: true);
Future<void> a({bool test});
Future<void> b({bool test});
@override
String toString() {
print('''
classString = $classString
answerA = $answerA
answerB = $answerB
''');
return super.toString();
}
}