Lesson 17 of 18 · +130 xp

Class with Method

Define and call.

Explained simply

Your task

Write: class Counter { int n = 0; void inc() => n++; }

widget.dart
← Back