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
... | |
dependencies: | |
asn1lib: ^1.0.0 | |
... |
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:math'; | |
void foo(Bar bar) { | |
if(bar.baz == null){ | |
// bar.baz was null | |
}else{ | |
// You are actually not sure if bar.baz is not null | |
bar.baz; | |
} |
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 'package:flutter_cache_manager/flutter_cache_manager.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:clock/clock.dart'; | |
const cacheKey = 'cache'; | |
final cacheManager = CacheManager(Config( | |
cacheKey, | |
fileService: CustomFileService(), | |
)); | |
const validity = Duration(days: 7); |
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 'package:flutter/material.dart'; | |
import 'dart:math'; | |
void main() { | |
runApp(new MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |