getCustomDimensions method

Size? getCustomDimensions()

Implementation

Size? getCustomDimensions() {
  if (widget.height != null || widget.width != null) {
    return Size(
      widget.width ?? 0,
      widget.height ?? 0,
    );
  } else {
    return null;
  }
}