StatementParameters.bindCustom constructor

const StatementParameters.bindCustom(
  1. void bind(
    1. CommonPreparedStatement stmt
    )
)

Passes variables by invoking a callback responsible for using a native statement handle to bind parameters.

Other constructors validate parameters, making them harder to misuse. In special cases where that doesn't work, this constructor can be used to indicate that you are fully responsible for binding parameters and don't need any validation checks.

Implementation

const factory StatementParameters.bindCustom(
    void Function(CommonPreparedStatement stmt) bind) = CustomParameters;