perspective method
Extension method to give 3D look to any widget without wrapping or with dot operator.
Implementation
Widget perspective({Key? key}) => Transform(
key: key,
transform: Matrix4.identity()..setEntry(3, 2, 0.001),
child: this,
);