Capsule constructor

Capsule({
  1. required int type,
  2. required Uint8List data,
})

Creates a capsule with the given type and data.

Implementation

Capsule({required this.type, required this.data});