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})
    : backgroundDecoration = BoxDecoration(
        borderRadius: style.borderRadius,
        color: colorScheme.secondary,
      ),
      progressDecoration = BoxDecoration(
        borderRadius: style.borderRadius,
        color: colorScheme.primary,
      ),
      constraints = const BoxConstraints(minHeight: 15.0, maxHeight: 15.0),
      animationDuration = const Duration(milliseconds: 500),
      curve = Curves.ease;