Skip to content

Tuple18WriteOps<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>

extension Tuple18WriteOps<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> on Record

Properties

tupled extension no setter

Write<Record> get tupled

Available on Record, provided by the Tuple18WriteOps<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> extension

Implementation
dart
Write<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)> get tupled {
  final initWrite = init.tupled;
  return Write.instance(initWrite.puts.concat(last.puts), (params, n, tuple) {
    final stmtParams = initWrite.setParameter(params, n, tuple.init);
    return last.setParameter(stmtParams, n + initWrite.length, tuple.last);
  });
}