notPreFixOperator top-level property
Implementation
final notPreFixOperator = UnaryOperatorDefinition(
symbol: '!',
signatures: [
UnaryOperatorSignature<bool, bool>(
description: 'Prefix to invert a boolean, e.g.: !true => false',
function: (boolean) => !boolean,
examples: [
ExpressionBlockExample(
(delimiter) => '${delimiter.start}!true${delimiter.end}',
shouldRender: 'false',
),
TestFileExample.fromProjectFilePath(
'test/src/parser/expression/operator/prefix/not_test.dart',
),
],
),
],
);