MeshConnectionStateEvent.fromMap constructor

MeshConnectionStateEvent.fromMap(
  1. Map<String, dynamic> map
)

Create from map received from platform channel

Implementation

factory MeshConnectionStateEvent.fromMap(Map<String, dynamic> map) {
  return MeshConnectionStateEvent(
    state: MeshConnectionState.fromString(map['state'] as String),
    error: map['error'] as String?,
    details: map['details'] as String?,
  );
}