createComputed<V> method

Computed<V> createComputed<V>(
  1. V cb(), {
  2. String? debugLabel,
  3. bool autoDispose = true,
})

Create a computed

Implementation

Computed<V> createComputed<V>(
  V Function() cb, {
  String? debugLabel,
  bool autoDispose = true,
}) {
  final s = computed<V>(
    cb,
    debugLabel: debugLabel,
    autoDispose: autoDispose,
  );
  _watch(s, true);
  return s;
}