LockSelection<D> constructor

LockSelection<D>({
  1. SelectionModelType selectionModelType = SelectionModelType.info,
})

Implementation

LockSelection({this.selectionModelType = SelectionModelType.info}) {
  // Setup the appropriate gesture listening.
  switch (eventTrigger) {
    case SelectionTrigger.tap:
      _listener = GestureListener(onTapTest: _onTapTest, onTap: _onSelect);
    case SelectionTrigger.hover:
    case SelectionTrigger.tapAndDrag:
    case SelectionTrigger.pressHold:
    case SelectionTrigger.longPressHold:
      throw ArgumentError('LockSelection does not support the event '
          'trigger "$eventTrigger"');
  }
}