getShape method Null safety

MaterialStateProperty<OutlinedBorder?>? getShape(
  1. BuildContext context
)

Implementation

MaterialStateProperty<OutlinedBorder?>? getShape(BuildContext context) {
  return MaterialStateProperty.resolveWith((states) =>
      _outlinedBorder() ??
      _getMaterialStyle(context)?.shape?.resolve(states));
}