My dart is Dart SDK version: 2.10.4 (stable) (Wed Nov 11 13:35:58 2020 +0100) on "windows_x64"
, but I can't use padLeft()
, does anyone tell me why? what can I do next?
Asked
Active
Viewed 87 times
0

mikezang
- 2,291
- 7
- 32
- 56
-
1Can you show some code where it is not working as it should work. May be yiu are using wrong data type. – Dev Dec 06 '20 at 13:22
-
can you tell me why? – mikezang Dec 06 '20 at 13:52
-
`toString` is probably a method, so you'd want to call/invoke that. – Caramiriel Dec 06 '20 at 13:56
1 Answers
2
I have no experience in Dart but isn’t toString
supposed to be a method? If so, you have to add parenthesis after its name like this: id.toString()
.

Boris Sukhinin
- 110
- 1
- 7