I have created a floatactionbutton function to build a new floating action button based on the sign in type ie. "google", "facebook", etc...
I want to capitalize the fist letter inside my build function like below but getting an error, how can I do this?
FloatingActionButton BuildLoginButton(String signInType) {
return FloatingActionButton.extended(
onPressed: () {},
icon: Image.asset('assets/images/$signInType+_logo.png', height: 32, width: 32),
signInType[0].toUpperCase(), // This Line is giving me the error
label: Text('Sign in with Google'),
backgroundColor: WHITE_COLOR,
foregroundColor: DARK_COLOR,
);
}