Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

create extention in dart

extension NumberParsing on String {
  int parseInt() {
    return int.parse(this);
  }

  double parseDouble() {
    return double.parse(this);
  }
}
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #create #extention #dart
ADD COMMENT
Topic
Name
8+5 =