remove static method
Implementation
static Uint8List remove(
{required Uint8List origin,
required int indexStart,
required int lengthRemove}) {
if (indexStart < 0 || lengthRemove <= 0) return origin;
if (origin.length == 0) return origin;
if (indexStart >= origin.length) return origin;
final actEnd = (indexStart + lengthRemove > origin.length)
? origin.length
: (indexStart + lengthRemove);
var list = List<int>.from(origin);
list.removeRange(indexStart, actEnd);
return Uint8List.fromList(list);
}