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);
      break;
    default:
      throw ArgumentError('LockSelection does not support the event '
          'trigger "$eventTrigger"');
  }
}