FlutterScreenshotEvent.fromMap constructor

FlutterScreenshotEvent.fromMap(
  1. Map<Object?, Object?> map
)

Implementation

factory FlutterScreenshotEvent.fromMap(Map<Object?, Object?> map) {
  return FlutterScreenshotEvent(
    method: map['method'] as String,
    timestamp: DateTime.fromMicrosecondsSinceEpoch(map['timestamp'] as int),
    path: map['path'] as String?,
  );
}