GitHash.fromBytes constructor
GitHash.fromBytes(
- Uint8List bytes
Implementation
GitHash.fromBytes(Uint8List bytes) {
if (bytes.length != 20) {
throw Exception('Hash size must be 20');
}
_bytes = Uint8List.fromList(bytes);
}