weightCoef property

double? get weightCoef
override

Edge weight coefficient.

Example:

// Get edge weight coefficient
int weightCoef = edge.getWeightCoef();
print('Edge weight coefficient: $weightCoef');

Implementation

double? get weightCoef {
    final _getFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Pointer<Void> Function(Pointer<Void>),
        Pointer<Void> Function(Pointer<Void>)
      >('navigine_sdk_flutter_GraphEdge_weightCoef_get'));

    final _weightCoefHandle = _getFfi(this.ptr);
    final _result = toPlatformFromPointerFloat(_weightCoefHandle);
    exception.checkCallResult();
    return _result;
}