Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart extension function

extension NumberParsing on String {
  int parseInt() {
    return int.parse(this);
  }
  // ···
}
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #dart #extension #function
ADD COMMENT
Topic
Name
5+8 =