getOffsetX method Null safety
- ScaffoldPrelayoutGeometry scaffoldGeometry,
- double adjustment
override
Calculates x-offset for end-aligned FloatingActionButtonLocations.
Implementation
@override
double getOffsetX(ScaffoldPrelayoutGeometry scaffoldGeometry, double adjustment) {
assert(scaffoldGeometry.textDirection != null);
switch (scaffoldGeometry.textDirection) {
case TextDirection.rtl:
return StandardFabLocation._leftOffsetX(scaffoldGeometry, adjustment);
case TextDirection.ltr:
return StandardFabLocation._rightOffsetX(scaffoldGeometry, adjustment);
}
}