copyWith method

PinTheme copyWith({
  1. double? width,
  2. double? height,
  3. TextStyle? textStyle,
  4. BoxConstraints? constraints,
  5. BoxDecoration? decoration,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
})

Create a new PinTheme from the current instance

Implementation

PinTheme copyWith({
  double? width,
  double? height,
  TextStyle? textStyle,
  BoxConstraints? constraints,
  BoxDecoration? decoration,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
}) {
  return PinTheme(
    width: width ?? this.width,
    height: height ?? this.height,
    textStyle: textStyle ?? this.textStyle,
    constraints: constraints ?? this.constraints,
    decoration: decoration ?? this.decoration,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
  );
}