lessThanOrEqualsOperator top-level property
Implementation
final lessThanOrEqualsOperator = BinaryOperatorDefinition(
symbol: '<=',
precedence: .relational,
associativity: .left,
signatures: [
BinaryOperatorSignature<num, num, bool>(
description:
'Checks if the left value is less than '
'or equal to the right value',
function: (left, right) => left <= right,
examples: [
ExpressionBlockExample(
(delimiter) => '${delimiter.start}2<=2${delimiter.end}',
shouldRender: 'true',
),
TestFileExample.fromProjectFilePath(
'test/src/parser/expression/operator/comparison/'
'less_than_or_equal_test.dart',
),
],
),
],
);