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));
  }
}

Libraries

lc_lazy_future_builder
a util with future to lazy load