toEdgeInsets method

EdgeInsets toEdgeInsets()

Implementation

EdgeInsets toEdgeInsets() {
  if (all != null) {
    return EdgeInsets.all(all!);
  } else {
    return EdgeInsets.fromLTRB(left ?? 0, top ?? 0, right ?? 0, bottom ?? 0);
  }
}