This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:typed_data'; | |
import 'package:http/http.dart' as http; | |
class HttpService { | |
Duration timeOutLimit = Duration(seconds: 15); | |
Future<http.Response> delete(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) { | |
return http.delete(url, headers: headers, body: body, encoding: encoding).timeout(timeOutLimit); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clean way to revert a commit by also leaving a log of the revert | |
$ git revert --strategy resolve <commit> |
22 Feb 2023
Error: flutter The method 'File.create' has fewer named arguments than those of overridden method 'File.create'
StackOverflow: For me the packages in my pubspec.yaml were all up to date, but the following fixed it:
Delete pubspec.lock.
Run flutter pub get again.
Link: StackOverflow
OlderNewer