EdgeInsets.fromJson constructor

EdgeInsets.fromJson(
  1. Map<String, dynamic> json
)

Create EdgeInsets from JSON

Implementation

factory EdgeInsets.fromJson(Map<String, dynamic> json) {
  return EdgeInsets.only(
    top: json['top'] ?? 0.0,
    right: json['right'] ?? 0.0,
    bottom: json['bottom'] ?? 0.0,
    left: json['left'] ?? 0.0,
  );
}