toPoint function

Offset toPoint(
  1. Map json
)

Implementation

Offset toPoint(Map json) => Offset(
      (json['x'] as int).toDouble(),
      (json['y'] as int).toDouble(),
    );