toDebugString method

  1. @override
String toDebugString()
override

Implementation

@override
String toDebugString() {
  final props = <String>[];
  if (padding != null) props.add('padding: $padding');
  if (margin != null) props.add('margin: $margin');
  if (color != null) props.add('color: $color');
  if (height != null) props.add('height: $height');
  if (width != null) props.add('width: $width');
  if (size != null) props.add('size: $size');
  if (radius != null) props.add('radius: $radius');
  if (border != null) props.add('border: $border');
  if (opacity != null) props.add('opacity: $opacity');
  if (visibility != null) props.add('visibility: $visibility');
  if (focusStyle != null) props.add('hasFocusStyle');
  if (disabledStyle != null) props.add('hasDisabledStyle');
  if (feedbackStyle != null) props.add('hasFeedbackStyle');
  if (options != null) props.add('hasOptions');

  return 'AntdBoxStyle{${props.join(', ')}}';
}