addEndAdornment method

Widget addEndAdornment(
  1. Widget child
)

Implementation

Widget addEndAdornment(Widget child) {
  if (endAdornment == null) {
    return child;
  }
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      Expanded(
        child: child,
      ),
      endAdornment!
    ],
  );
}