selector static method

Uint8List selector(
  1. String signature
)

Implementation

static Uint8List selector(String signature) {
  final hash = keccak256(Uint8List.fromList(signature.codeUnits));
  return hash.sublist(0, 4);
}