flutter / flutter_clock

BSD 3-Clause "New" or "Revised" License
543 stars 328 forks source link

Extension functions #54

Closed kazume closed 4 years ago

kazume commented 4 years ago

Is there any limit on which version of dart can be used? Or the real question is: can extension functions be used, requiring dart 2.6.0?

JonathanMonga commented 4 years ago

Extension methods is a feature of Dart 2.7.0, I think...

kazume commented 4 years ago

I read both, but when implementing an extension function in flutter, it warns me that it needs the SDK set to 2.6.0 or higher, so I assumed this was the correct requirement for using extension functions :)

kazume commented 4 years ago

No one? Anyone? :)

SirusCodes commented 4 years ago

i guess you can use it because your clock face should run on latest flutter sdk

DeepStyles commented 4 years ago

lol I had same doubt, whts the answer???

kazume commented 4 years ago

Not sure ... I used it (on basis of what SirusCodes said). Hope to get an official answer before the 20th though.

jkurtw commented 4 years ago

As long as your project can build and run with Flutter 1.12 (stable channel) then you are fine.