• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 190

Backtrace:

File: /home/fluttergeeks/public_html/application/views/question.php
Line: 190
Function: _error_handler

File: /home/fluttergeeks/public_html/application/controllers/Questions.php
Line: 420
Function: view

File: /home/fluttergeeks/public_html/index.php
Line: 319
Function: require_once

name Punditsdkoslkdosdkoskdo

How to capitalize the first letter of a string in dart?

How do I capitalize the first character of a string, while not changing the case of any of the other letters?

For example, "this is a string" should give "This is a string".

name
  • 0

 String s="this is a string";
print('${s.split('').first.toUpperCase()}${s.substring(1)}');

  • 0
Reply Report


Popular Questions

Trending Tags

Related Questions