GitHash.fromBytes constructor

GitHash.fromBytes(
  1. Uint8List bytes
)

Implementation

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