Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

string to int in dart

import 'dart:convert';

void main() {
    var a = 10; // An integer
    var b = "20"; // A string
    var c = int.parse(b);
    print(a + c);
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #string #int #dart
ADD COMMENT
Topic
Name
4+4 =