getTableRow method
Get table row (AMAX get table ...)
Implementation
Future<Map<String, dynamic>?> getTableRow(
String code,
String scope,
String table, {
bool json = true,
String tableKey = '',
String lower = '',
String upper = '',
int indexPosition = 1,
String keyType = '',
bool reverse = false,
}) async {
var rows = await getTableRows(
code,
scope,
table,
json: json,
tableKey: tableKey,
lower: lower,
upper: upper,
indexPosition: indexPosition,
keyType: keyType,
limit: 1,
reverse: reverse,
);
return rows.length > 0 ? rows[0] : null;
}