transaction method Null safety

Future transaction(
  1. TransactionBlock block
)

Implementation

Future transaction(TransactionBlock block) async {
  await connection.transaction((ctx) async {
    final queryAble = TransactionQeury(ctx);
    await block(queryAble);
  });
}