UIEdgeInsets constructor

UIEdgeInsets({
  1. UILength? top,
  2. UILength? right,
  3. UILength? bottom,
  4. UILength? left,
})

Implementation

factory UIEdgeInsets({
  UILength? top,
  UILength? right,
  UILength? bottom,
  UILength? left,
}) {
  final result = create();
  if (top != null) result.top = top;
  if (right != null) result.right = right;
  if (bottom != null) result.bottom = bottom;
  if (left != null) result.left = left;
  return result;
}