Last active
October 23, 2024 10:15
-
-
Save eernstg/8e68effb6600ef4d796cbf6d65260803 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static extension EdgeInsetsGeometryExtensions on EdgeInsetsGeometry { | |
// Forward to EdgeInsets: | |
const factory EdgeInsetsGeometry.fromLTRB = EdgeInsets.fromLTRB; | |
const factory EdgeInsetsGeometry.all = EdgeInsets.all; | |
const factory EdgeInsetsGeometry.only = EdgeInsets.only; | |
const factory EdgeInsetsGeometry.symmetric = EdgeInsets.symmetric; | |
static const zero = EdgeInsets.only(); | |
// Forward to EdgeInsetsDirectional: | |
const factory EdgeInsetsGeometry.fromSTEB = EdgeInsetsDirectional.fromSTEB; | |
const factory EdgeInsetsGeometry.onlyDirectional = EdgeInsetsDirectional.only; | |
const factory EdgeInsetsGeometry.symmetricDirectional = EdgeInsetsDirectional.symmetric; | |
const factory EdgeInsetsGeometry.allDirectional = EdgeInsetsDirectional.all; | |
static const zeroDirectional = EdgeInsetsDirectional.only(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We could also allow this: