Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Breaking Change: More methods turn to getters

The Dart libraries continue to evolve, with a new round of methods turning into getters. Florian Loitsch posted this notice to the Dart mailing list:

As of r14094 Map.getKeys() has been changed to Map.keys, Map.getValues() to Map.values, and Match.start()/end()/groupCount() have been made getters.


Examples:
myMap.getKeys() is now myMap.keys.
myRegExp.firstMatch("foo").start() is now myRegExp.firstMatch("foo").start.

As always, the Dart encourages you to join the conversation on the Dart mailing list, ask questions on Stack Overflow, and file feature requests and bugs on dartbug.com.