lc_lazy_future_builder 0.1.0-beta.0
lc_lazy_future_builder: ^0.1.0-beta.0 copied to clipboard
add lazy load with future annotation
What is this? #
Wrap an existing function and regenerate a new asynchronous function
Usage #
import 'package:lc_lazy_future/lc_lazy_future.dart';
/// will generate TODO
@LcLazyGroup()
class Example {
String? name;
Example({
this.name = '',
});
/// will generate `Example.create` function
@LcLazyFuture()
Future<void> _create() async {
await Future.delayed(const Duration(seconds: 1));
}
}