0

Here is Dart "String"'s Method :

enter image description here

I don't know what's "?" mean? And I try this in DartPad like this: enter image description here

But it throw a error.

I'll be grateful to your anwser.

Oo_oO
  • 129
  • 1
  • 12
  • 2
    Did you try reading the error? It says "This requires the 'non-nullable' language feature to be enabled." You can then search for what that is, such as the following... [What is Null Safety in Dart?](https://stackoverflow.com/questions/60068435/what-is-null-safety-in-dart); look for point 2.2 of the answer. In short: `?` tells Dart the variable can be nullable, but unless you're in non-nullable-by-default mode, it's redundant, as everything can be null and initially is. – underscore_d Aug 27 '20 at 15:24
  • @underscore_d Thanks, I should thinking and inquiring more – Oo_oO Aug 27 '20 at 16:24
  • @Mobina Yes,thank you. – Oo_oO Aug 27 '20 at 16:27

0 Answers0