ColumnState.fromMap constructor

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

Creates a ColumnState from a JSON-compatible map

Implementation

factory ColumnState.fromMap(Map<String, dynamic> map) {
  return ColumnState(
    width: map['width'] as double?,
    visible: map['visible'] as bool?,
    pinLeft: map['pinLeft'] as bool?,
    pinRight: map['pinRight'] as bool?,
    userResized: map['userResized'] as bool? ?? false,
  );
}