PinDotStyle.fromTheme constructor

PinDotStyle.fromTheme(
  1. PinInputTheme theme
)

Implementation

factory PinDotStyle.fromTheme(PinInputTheme theme) {
  return PinDotStyle(
    filledColor: theme.domainColor,
    emptyColor: theme.domainColor.withOpacity(theme.emptyOpacity),
    errorFilledColor: const Color(0xFFF44336),
    errorEmptyColor: const Color(0xFFF44336).withOpacity(theme.emptyOpacity),
  );
}