operator ~/ method Null safety

  1. @override
EdgeInsetsDirectional operator ~/ (
  1. double other
)
override

Integer divides the EdgeInsetsDirectional object in each dimension by the given factor.

Implementation

@override
EdgeInsetsDirectional operator ~/(double other) {
  return EdgeInsetsDirectional.fromSTEB(
    (start ~/ other).toDouble(),
    (top ~/ other).toDouble(),
    (end ~/ other).toDouble(),
    (bottom ~/ other).toDouble(),
  );
}