NomoInputThemeData.from constructor

NomoInputThemeData.from(
  1. NomoInputColorData colors,
  2. NomoInputSizingData sizing,
  3. NomoInputConstants constants
)

Implementation

factory NomoInputThemeData.from(
  NomoInputColorData colors,
  NomoInputSizingData sizing,
  NomoInputConstants constants,
) {
  return NomoInputThemeData(
    background: colors.background,
    errorColor: colors.errorColor,
    borderRadius: colors.borderRadius,
    border: colors.border,
    selectedBorder: colors.selectedBorder,
    errorBorder: colors.errorBorder,
    selectedErrorBorder: colors.selectedErrorBorder,
    margin: colors.margin,
    padding: sizing.padding,
    duration: constants.duration,
    curve: constants.curve,
    titleSpacing: constants.titleSpacing,
  );
}