CustomProtocolDevice constructor Null safety

CustomProtocolDevice(
  1. {String? roleName,
  2. List<String>? supportedDataTypes}
)

Create a new CustomProtocolDevice device descriptor. If roleName is not specified, then the DEFAULT_ROLENAME is used.

Implementation

CustomProtocolDevice({
  String? roleName,
  List<String>? supportedDataTypes,
}) : super(
        roleName: roleName ?? DEFAULT_ROLENAME,
        supportedDataTypes: supportedDataTypes,
      );