What do you want to save?
Add Code snippet
New code examples in category Dart
-
-
Awgiedawgie 2022-03-05 20:35:12
dart nullable variable
// type? variable; variable can be null. int a?; // a can be null e1?.[e2] // null if e1 is null; otherwise it’s e1[e2] /* This requires the 'non-nullable' language feature to be enabled. In pubspec.yaml, set the minimum SDK constraint to 2.... Add solution -
Phoenix Logan 2022-03-03 02:10:01
Flutter make widget based on dio
import 'dart:async'; import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; Future<Album> fetchAlbum() async { final response = await http.get('https://jsonplaceholder.typicode.com/albums/1'... Add solution
Best helpers
Mastersulm
+5
Panky1986
+5
Diane
+5
Artmal
+5
D. maples
+5
Richard D
+5
Any Mouse
+5
RiCo
+5
Adam Clowes
+5
Tushar Diwan
+5
T.Baugh
+5
Saforrest
+5
Sinow
+5
Naman
+5
P Fitz
+5
Zelite
+5
I-love-php
+5
Pinakin
+5
Jeff Howarth
+5