SnapAlignment.static constructor

SnapAlignment.static([
  1. double alignment = 0.5
])

Creates a static non-changing snap point at given position.

Implementation

SnapAlignment.static([double alignment = 0.5])
    : _parameters = ((item) => alignment);