Skip to content

Instantly share code, notes, and snippets.

@vinceramcesoliveros
Created August 19, 2022 06:29
Show Gist options
  • Save vinceramcesoliveros/2c040816372c59ebd96d7340529d129a to your computer and use it in GitHub Desktop.
Save vinceramcesoliveros/2c040816372c59ebd96d7340529d129a to your computer and use it in GitHub Desktop.
Counter app
import 'package:flutter_test/flutter_test.dart';
class Counter {
int value = 0;
void increment() => value++;
void decrement() => value--;
}
void main() {
test("Incremenet value by 1", () {
final counter = Counter();
expect(counter.value, 0);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment