BasePad constructor

BasePad({
  1. Dimensions? dimensions,
  2. bool? relative,
  3. bool? regionRelative,
  4. CompassGravity? gravityValue,
  5. dynamic offsetXValue,
  6. dynamic offsetYValue,
  7. Background? backgroundValue,
})

Implementation

BasePad(
    {super.dimensions,
    super.relative,
    super.regionRelative,
    CompassGravity? gravityValue,
    dynamic offsetXValue,
    dynamic offsetYValue,
    Background? backgroundValue}) {
  if (gravityValue != null) {
    gravity(gravityValue);
  }
  offsetX(offsetXValue);
  offsetY(offsetYValue);
  if (backgroundValue != null) {
    background(backgroundValue);
  }
}