clause method
Implementation
@override
CommandClause clause() {
CommandClause clause = CommandClause.withBinary(PsdkConst.emptyBytes);
switch (_mode) {
case RawMode.text:
if (_text == null || _text!.isEmpty) {
break;
}
clause = CommandClause.withText(_text!, charset: _charset);
break;
case RawMode.binary:
if (_binary == null) {
break;
}
clause = CommandClause.withBinary(_binary!);
break;
default:
break;
}
return clause;
}