This file contains hidden or 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
main() { | |
double lat = 74.4312, long = 12.3321; | |
print('$lat:$long'); | |
} |
This file contains hidden or 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
java.lang.RuntimeException: | |
at com.google.firebase.firestore.util.AsyncQueue.access$000 (AsyncQueue.java) | |
or .access$100 (AsyncQueue.java) | |
or .callTask (AsyncQueue.java) | |
or .containsDelayedTask (AsyncQueue.java) | |
or .enqueue (AsyncQueue.java) | |
or .enqueueAfterDelay (AsyncQueue.java) | |
or .getExecutor (AsyncQueue.java) | |
or .lambda$callTask$0 (AsyncQueue.java) | |
or .lambda$callTask$1 (AsyncQueue.java) |
This file contains hidden or 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
java.lang.RuntimeException: | |
at com.google.firebase.firestore.util.AsyncQueue.access$000 (AsyncQueue.java) | |
or .access$100 (AsyncQueue.java) | |
or .callTask (AsyncQueue.java) | |
or .containsDelayedTask (AsyncQueue.java) | |
or .enqueue (AsyncQueue.java) | |
or .enqueueAfterDelay (AsyncQueue.java) | |
or .getExecutor (AsyncQueue.java) | |
or .lambda$callTask$0 (AsyncQueue.java) | |
or .lambda$callTask$1 (AsyncQueue.java) |
This file contains hidden or 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
java.lang.RuntimeException: | |
at com.google.firebase.firestore.util.AsyncQueue.access$000 (AsyncQueue.java) | |
or .access$100 (AsyncQueue.java) | |
or .callTask (AsyncQueue.java) | |
or .containsDelayedTask (AsyncQueue.java) | |
or .enqueue (AsyncQueue.java) | |
or .enqueueAfterDelay (AsyncQueue.java) | |
or .getExecutor (AsyncQueue.java) | |
or .lambda$callTask$0 (AsyncQueue.java) | |
or .lambda$callTask$1 (AsyncQueue.java) |
This file contains hidden or 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 'package:flutter/material.dart'; | |
main() { | |
runApp(MaterialApp( | |
home: Scaffold( | |
body: SafeArea( | |
child: Stack( | |
children: <Widget>[ | |
const Lines(), | |
const IgnorePointer( |
This file contains hidden or 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
[√] Flutter (Channel master, v1.8.2-pre.165, on Windows 10, locale en-US) | |
• Flutter version 1.8.2-pre.165 at flutterRoot | |
• Framework revision 53186706de (16 hours ago), 2019-07-23 23:06:40 -0400 | |
• Engine revision ef99738baf | |
• Dart version 2.5.0 (build 2.5.0-dev.1.0 fedd74669a) | |
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.0) | |
• Android SDK at androidSdk | |
• Android NDK location not configured (optional; useful for native profiling support) | |
• Platform android-29, build-tools 29.0.0 |
This file contains hidden or 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:convert'; | |
void main() { | |
final String string = '[{"name": "Dart", "value": 1}]'; | |
final data = jsonDecode(string); | |
print(data[0]['name']); | |
print(data[0]['value']); | |
} |
This file contains hidden or 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 'package:flutter/material.dart'; | |
import 'package:flutter/scheduler.dart'; | |
mixin NonStopTickerProviderMixin implements TickerProvider { | |
@override | |
Ticker createTicker(TickerCallback onTick) => Ticker(onTick); | |
} | |
void main() { | |
runApp(MaterialApp(home: const Init())); |
This file contains hidden or 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 'template_string.dart'; | |
main() { | |
final templateUrl = TemplateString('{host}/api/v3/{container}/{resourceid}'); | |
final params = <String, dynamic>{'host': 'www.api.com', 'container': 'books', 'resourceid': 10}; | |
print(templateUrl.format(params)); // www.api.com/api/v3/books/10 | |
print(TemplateString('no parameters').format({})); // no parameters | |
print(TemplateString('{only}{parameters}') |