AppBarLoader.value constructor

AppBarLoader.value({
  1. Key? key,
  2. required LiveData<double?> value,
  3. Color? backgroundColor,
  4. Color? color,
  5. Animation<Color?>? valueColor,
  6. double? minHeight,
  7. String? semanticsLabel,
  8. String? semanticsValue,
})

Implementation

AppBarLoader.value({
  super.key,
  required LiveData<double?> this.value,
  this.backgroundColor,
  this.color,
  this.valueColor,
  this.minHeight,
  this.semanticsLabel,
  this.semanticsValue,
}) : loading = value.transform((value) => value != null);