dart update
C:> choco upgrade dart-sdk
dart update
C:> choco upgrade dart-sdk
dart getter
// getter: return_type get field_name { }
String get emp_name {
return empName;
}
// setter: set field_name { }
void set emp_name(String name) {
this.empName = name;
}
get flutter
import 'package:http/http.dart' as http;
var url = Uri.parse('https://jsonplaceholder.typicode.com/todos/1');
var response = await http.get(url);
Map data = jsonDecode(response.body);
print(data);
dartlang ubuntu
$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
$ sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
dart getter
int get age => 21;
void set age(int currentYear) =>
vehicleAge = currentYear - manufactureYear;
flutter get
dependencies:
get: ^4.3.8
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us