DragSelectionEvent.fromJson constructor

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

Implementation

factory DragSelectionEvent.fromJson(Map<String, dynamic> json) {
  return DragSelectionEvent(
    (json['nodeIds'] as List).cast<String>().toSet(),
    Offset(json['delta'][0], json['delta'][1]),
    id: json['id'] as String,
    isHandled: json['isHandled'] as bool,
  );
}