ScrollRect.fromJson constructor

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

Implementation

factory ScrollRect.fromJson(Map<String, dynamic> json) {
  return ScrollRect(
    rect: dom.Rect.fromJson(json['rect'] as Map<String, dynamic>),
    type: ScrollRectType.fromJson(json['type'] as String),
  );
}