flutter/packages/cassowary/lib/constant_member.dart
2015-07-08 16:40:51 -07:00

20 lines
461 B
Dart

// Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
part of cassowary;
class ConstantMember extends _EquationMember {
final double value;
bool get isConstant => true;
ConstantMember(this.value);
Expression asExpression() => new Expression([], this.value);
}
ConstantMember cm(double value) {
return new ConstantMember(value);
}