setPadding method

void setPadding(
  1. EdgeInsetsGeometry p
)

Implementation

void setPadding(EdgeInsetsGeometry p) {
  assert(p.isNonNegative);
  if (padding == p) {
    return;
  }
  padding = p;
  _resolvedPadding = null;
  markNeedsLayout();
}