lazy_evaluation 0.0.4+1 lazy_evaluation: ^0.0.4+1 copied to clipboard
A simple package to cache and lazily evaluate objects that have a costly initialization process.
Lazy Evaluation #
A simple package to cache and lazily evaluate objects that have a costly initialization process.
Usage #
import 'package:lazy_evaluation/lazy_evaluation.dart';
main() {
var myLazyString = Lazy<String>(() => 'this is lazily evaluated');
print(myLazyString.value); // alternatively, you can use myLastString() instead of myLastString.value
}