alternateComparer property

num Function(TreeVertex, TreeVertex) get alternateComparer

Gets or sets the alternate comparison function used for sorting the immediate children of a vertex.

The default comparer compares the LayoutVertex#node Text values.

This sets the #alternateDefaults' property of the same name. Whether this comparison function is used is determined by the value of #alternateSorting.

Implementation

_i2.num Function(
  _i3.TreeVertex,
  _i3.TreeVertex,
) get alternateComparer => (
      _i3.TreeVertex p0,
      _i3.TreeVertex p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'alternateComparer',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
set alternateComparer (num value(TreeVertex, TreeVertex))

Implementation

set alternateComparer(
    _i2.num Function(
      _i3.TreeVertex,
      _i3.TreeVertex,
    ) value) {
  _i4.setProperty(
    this,
    'alternateComparer',
    _i4.allowInterop(value),
  );
}