style method

Implementation

NsgSwitchHorizontalStyleMain style() {
  return NsgSwitchHorizontalStyleMain(
    textStyle: textStyle ?? nsgtheme.nsgSwitchHorizontalStyle.textStyle ?? TextStyle(),
    textActiveStyle: textActiveStyle ?? nsgtheme.nsgSwitchHorizontalStyle.textActiveStyle ?? TextStyle(),
    trackColor: trackColor ?? nsgtheme.nsgSwitchHorizontalStyle.trackColor ?? Colors.black,
    trackActiveColor: trackActiveColor ?? nsgtheme.nsgSwitchHorizontalStyle.trackActiveColor ?? Colors.black,
    thumbColor: thumbColor ?? nsgtheme.nsgSwitchHorizontalStyle.thumbColor ?? Colors.red,
    thumbActiveColor: thumbActiveColor ?? nsgtheme.nsgSwitchHorizontalStyle.thumbActiveColor ?? Colors.red,
    trackWidth: trackWidth ?? nsgtheme.nsgSwitchHorizontalStyle.trackWidth ?? 30,
    trackHeight: trackHeight ?? nsgtheme.nsgSwitchHorizontalStyle.trackHeight ?? 10,
    thumbWidth: thumbWidth ?? nsgtheme.nsgSwitchHorizontalStyle.thumbWidth ?? 10,
    thumbHeight: thumbHeight ?? nsgtheme.nsgSwitchHorizontalStyle.thumbHeight ?? 10,
    trackBorderRadius: trackBorderRadius ?? nsgtheme.nsgSwitchHorizontalStyle.trackBorderRadius ?? BorderRadius.circular(15),
    thumbBorderRadius: thumbBorderRadius ?? nsgtheme.nsgSwitchHorizontalStyle.thumbBorderRadius ?? BorderRadius.circular(10),
    thumbMargin: thumbMargin ?? nsgtheme.nsgSwitchHorizontalStyle.thumbMargin ?? EdgeInsets.zero,
  );
}