[dev, bots, examples] rename local functions with _s (#102703)
This commit is contained in:
@@ -15,7 +15,7 @@ void main() {
|
||||
assert(false, "Don't run benchmarks in checked mode! Use 'flutter run --release'.");
|
||||
print('MatrixUtils.transformRect and .transformPoint benchmark...');
|
||||
|
||||
Matrix4 _makePerspective(double radius, double angle, double perspective) {
|
||||
Matrix4 makePerspective(double radius, double angle, double perspective) {
|
||||
return MatrixUtils.createCylindricalProjectionTransform(
|
||||
radius: radius,
|
||||
angle: angle,
|
||||
@@ -29,9 +29,9 @@ void main() {
|
||||
Matrix4.identity()..scale(1.2, 1.3, 1.0)..translate(12.0, 13.0, 10.0),
|
||||
];
|
||||
final List<Matrix4> perspectiveTransforms = <Matrix4>[
|
||||
_makePerspective(10.0, math.pi / 8.0, 0.3),
|
||||
_makePerspective( 8.0, math.pi / 8.0, 0.2),
|
||||
_makePerspective( 1.0, math.pi / 4.0, 0.1)..rotateX(0.1),
|
||||
makePerspective(10.0, math.pi / 8.0, 0.3),
|
||||
makePerspective( 8.0, math.pi / 8.0, 0.2),
|
||||
makePerspective( 1.0, math.pi / 4.0, 0.1)..rotateX(0.1),
|
||||
];
|
||||
final List<Rect> rectangles = <Rect>[
|
||||
const Rect.fromLTRB(1.1, 1.2, 1.5, 1.8),
|
||||
|
||||
Reference in New Issue
Block a user