clear method
Clear the allocated data contents.
Param isFresh
is true if the given data has been freshly allocated,
depending on the allocator implementation, clearing may be unnecessary.
Implementation
@override
@pragma('vm:prefer-inline')
void clear(ByteData data, bool isFresh) {
if (isFresh) {
// nothing to do, ByteData is created all zeroed out
} else {
super.clear(data, isFresh);
}
}