FProgressStyle.inherit constructor

FProgressStyle.inherit({
  1. required FColors colors,
  2. required FStyle style,
})

Creates a FProgressStyle that inherits its properties.

Implementation

FProgressStyle.inherit({required FColors colors, required FStyle style})
  : this(
      trackDecoration: ShapeDecoration(
        shape: RoundedSuperellipseBorder(borderRadius: style.borderRadius.pill),
        color: colors.muted,
      ),
      fillDecoration: ShapeDecoration(
        shape: RoundedSuperellipseBorder(borderRadius: style.borderRadius.pill),
        color: colors.primary,
      ),
    );