padding property Null safety

EdgeInsetsGeometry padding

The amount to pad the child in each dimension.

If this is set to an EdgeInsetsDirectional object, then textDirection must not be null.

Implementation

EdgeInsetsGeometry get padding => _padding;
void padding=(EdgeInsetsGeometry value)

Implementation

set padding(EdgeInsetsGeometry value) {
  assert(value != null);
  assert(value.isNonNegative);
  if (_padding == value) {
    return;
  }
  _padding = value;
  _markNeedResolution();
}