stride property

String stride

Implementation

String get stride => _stride;
void stride=(String _newVal)

Implementation

set stride(String _newVal) {
  if (_stride == _newVal && _stride == '0px') {
    return;
  }
  _stride = _newVal;
  for (var i = 0; i < children.length; i++) {
    final child = children[i];
    final isLast = i == (children.length - 1);
    if (_vertical) {
      if (!isLast) {
        child.nodeRoot.style.marginBottom = _stride;
      } else {
        child.nodeRoot.style.marginBottom = '';
      }
      if (wrap) {
        child.nodeRoot.style.marginRight = _stride;
      } else {
        child.nodeRoot.style.marginRight = '';
      }
    } else {
      if (!isLast) {
        child.nodeRoot.style.marginRight = _stride;
      } else {
        child.nodeRoot.style.marginRight = '';
      }

      if (wrap) {
        child.nodeRoot.style.marginBottom = _stride;
      } else {
        child.nodeRoot.style.marginBottom = '';
      }
    }
  }
}