jsonToOffset function

Offset jsonToOffset(
  1. Map<String, dynamic> data
)

Implementation

Offset jsonToOffset(Map<String, dynamic> data) {
  return Offset(data['dx'] as double, data['dy'] as double);
}