merge method

  1. @override
UISegmentedButtonThemeData merge(
  1. covariant UISegmentedButtonThemeData? other
)
override

Implementation

@override
UISegmentedButtonThemeData merge(covariant UISegmentedButtonThemeData? other) {
  return copyWith(
    height: other?.height,
    spacing: other?.spacing,
    padding: other?.padding,
    borderRadius: other?.borderRadius,
    backgroundColor: other?.backgroundColor,
    segmentBackgroundColor: other?.segmentBackgroundColor,
    selectedColor: other?.selectedForegroundColor,
    unselectedForegroundColor: other?.unselectedForegroundColor,
    textStyle: other?.textStyle,
  );
}