0

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?

enter image description here

mikezang
  • 2,291
  • 7
  • 32
  • 56

1 Answers1

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