FProgressStyle.inherit constructor

FProgressStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FStyle style,
})

Creates a FProgressStyle that inherits its properties from colorScheme and style.

Implementation

FProgressStyle.inherit({required FColorScheme colorScheme, required FStyle style})
    : this(
        backgroundDecoration: BoxDecoration(
          borderRadius: style.borderRadius,
          color: colorScheme.secondary,
        ),
        progressDecoration: BoxDecoration(
          borderRadius: style.borderRadius,
          color: colorScheme.primary,
        ),
      );