ApiRequest constructor
Creates a new ApiRequest given an id
and some optional data
.
Implementation
ApiRequest({
required this.id,
this.idWidth = 4,
this.data,
}) {
if (id < 0) {
throw ArgumentError('Must not be negative', 'id');
}
}