insets function

EdgeInsets insets({
  1. double? left,
  2. double? top,
  3. double? right,
  4. double? bottom,
  5. double? hor,
  6. double? ver,
  7. double? all,
})

Implementation

EdgeInsets insets({double? left, double? top, double? right, double? bottom, double? hor, double? ver, double? all}) {
  return EdgeInsets.fromLTRB(left ?? hor ?? all ?? 0, top ?? ver ?? all ?? 0, right ?? hor ?? all ?? 0, bottom ?? ver ?? all ?? 0);
}