Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
void showPerson(String name, int age) { print('$name is $age years old'); } void main() { showPerson('Tom'); }
main.dart:6:13: Error: Too few positional arguments: 2 required, 1 given.
showPerson('Tom');
^
main.dart:1:6: Context: Found this candidate, but the arguments don't match.
void showPerson(String name, int age) {
^^^^^^^^^^