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 _handle = this.handle;
    final _weightCoefHandle = _getFfi(_handle);
    final _result = navigine_sdk_flutter_double_FromFfiNullable(_weightCoefHandle);
    navigine_sdk_flutter_double_ReleaseFfiHandleNullable(_weightCoefHandle);
    return _result;
}