copyDirectionalInsets function

EdgeInsetsDirectional copyDirectionalInsets(
  1. EdgeInsetsDirectional insets, {
  2. double? start,
  3. double? top,
  4. double? end,
  5. double? bottom,
})

Implementation

EdgeInsetsDirectional copyDirectionalInsets(
  EdgeInsetsDirectional insets, {
  double? start, double? top, double? end, double? bottom,
}) {
  return EdgeInsetsDirectional.fromSTEB(
    start ?? insets.start,
    top ?? insets.top,
    end ?? insets.end,
    bottom ?? insets.bottom
  );
}